ng-http-loader 9.0.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -0
  3. package/esm2020/lib/components/abstract.loader.directive.mjs +20 -0
  4. package/esm2020/lib/components/ng-http-loader.component.mjs +114 -0
  5. package/esm2020/lib/components/sk-chasing-dots/sk-chasing-dots.component.mjs +20 -0
  6. package/esm2020/lib/components/sk-cube-grid/sk-cube-grid.component.mjs +20 -0
  7. package/esm2020/lib/components/sk-double-bounce/sk-double-bounce.component.mjs +20 -0
  8. package/esm2020/lib/components/sk-rotating-plane/sk-rotating-plane.component.mjs +20 -0
  9. package/esm2020/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.mjs +20 -0
  10. package/esm2020/lib/components/sk-three-bounce/sk-three-bounce.component.mjs +20 -0
  11. package/esm2020/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.mjs +20 -0
  12. package/esm2020/lib/components/sk-wave/sk-wave.component.mjs +20 -0
  13. package/esm2020/lib/ng-http-loader.module.mjs +54 -0
  14. package/esm2020/lib/services/pending-requests-interceptor.service.mjs +93 -0
  15. package/esm2020/lib/services/spinner-visibility.service.mjs +38 -0
  16. package/{esm2015/lib/spinkits.js → esm2020/lib/spinkits.mjs} +1 -1
  17. package/esm2020/ng-http-loader.mjs +5 -0
  18. package/esm2020/public_api.mjs +18 -0
  19. package/fesm2015/ng-http-loader.mjs +460 -0
  20. package/fesm2015/ng-http-loader.mjs.map +1 -0
  21. package/fesm2020/ng-http-loader.mjs +460 -0
  22. package/fesm2020/ng-http-loader.mjs.map +1 -0
  23. package/lib/components/abstract.loader.directive.d.ts +3 -0
  24. package/lib/components/ng-http-loader.component.d.ts +5 -1
  25. package/lib/components/sk-chasing-dots/sk-chasing-dots.component.d.ts +3 -0
  26. package/lib/components/sk-cube-grid/sk-cube-grid.component.d.ts +3 -0
  27. package/lib/components/sk-double-bounce/sk-double-bounce.component.d.ts +3 -0
  28. package/lib/components/sk-rotating-plane/sk-rotating-plane.component.d.ts +3 -0
  29. package/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.d.ts +3 -0
  30. package/lib/components/sk-three-bounce/sk-three-bounce.component.d.ts +3 -0
  31. package/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.d.ts +3 -0
  32. package/lib/components/sk-wave/sk-wave.component.d.ts +3 -0
  33. package/lib/ng-http-loader.module.d.ts +14 -0
  34. package/lib/services/pending-requests-interceptor.service.d.ts +3 -0
  35. package/lib/services/spinner-visibility.service.d.ts +3 -0
  36. package/ng-http-loader.d.ts +1 -0
  37. package/package.json +22 -12
  38. package/CHANGELOG.md +0 -219
  39. package/bundles/ng-http-loader.umd.js +0 -770
  40. package/bundles/ng-http-loader.umd.js.map +0 -1
  41. package/bundles/ng-http-loader.umd.min.js +0 -16
  42. package/bundles/ng-http-loader.umd.min.js.map +0 -1
  43. package/esm2015/lib/components/abstract.loader.directive.js +0 -18
  44. package/esm2015/lib/components/ng-http-loader.component.js +0 -97
  45. package/esm2015/lib/components/sk-chasing-dots/sk-chasing-dots.component.js +0 -20
  46. package/esm2015/lib/components/sk-cube-grid/sk-cube-grid.component.js +0 -20
  47. package/esm2015/lib/components/sk-double-bounce/sk-double-bounce.component.js +0 -20
  48. package/esm2015/lib/components/sk-rotating-plane/sk-rotating-plane.component.js +0 -20
  49. package/esm2015/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.js +0 -20
  50. package/esm2015/lib/components/sk-three-bounce/sk-three-bounce.component.js +0 -20
  51. package/esm2015/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.js +0 -20
  52. package/esm2015/lib/components/sk-wave/sk-wave.component.js +0 -20
  53. package/esm2015/lib/ng-http-loader.module.js +0 -39
  54. package/esm2015/lib/services/pending-requests-interceptor.service.js +0 -91
  55. package/esm2015/lib/services/spinner-visibility.service.js +0 -40
  56. package/esm2015/ng-http-loader.js +0 -5
  57. package/esm2015/public_api.js +0 -18
  58. package/fesm2015/ng-http-loader.js +0 -452
  59. package/fesm2015/ng-http-loader.js.map +0 -1
  60. package/ng-http-loader.metadata.json +0 -1
@@ -1,452 +0,0 @@
1
- import { Directive, Input, Component, ɵɵdefineInjectable, Injectable, ɵɵinject, NgModule } from '@angular/core';
2
- import { ReplaySubject, partition, merge, timer } from 'rxjs';
3
- import { finalize, switchMap, debounce, distinctUntilChanged, tap } from 'rxjs/operators';
4
- import { HTTP_INTERCEPTORS } from '@angular/common/http';
5
- import { CommonModule } from '@angular/common';
6
-
7
- /*
8
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
10
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
11
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
12
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
13
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
- */
15
- class AbstractLoaderDirective {
16
- }
17
- AbstractLoaderDirective.decorators = [
18
- { type: Directive }
19
- ];
20
- AbstractLoaderDirective.propDecorators = {
21
- backgroundColor: [{ type: Input }]
22
- };
23
-
24
- /*
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
27
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
28
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
29
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
30
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
- */
32
- class SkChasingDotsComponent extends AbstractLoaderDirective {
33
- }
34
- SkChasingDotsComponent.decorators = [
35
- { type: Component, args: [{
36
- selector: 'sk-chasing-dots',
37
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-chasing-dots\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-dot1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-dot2\" [style.background-color]='backgroundColor'></div>\n</div>\n",
38
- styles: [".sk-chasing-dots{animation:sk-chasingDotsRotate 2s linear infinite;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:40px}.sk-chasing-dots .sk-child{animation:sk-chasingDotsBounce 2s ease-in-out infinite;border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}.sk-chasing-dots .sk-dot2{animation-delay:-1s;bottom:0;top:auto}@keyframes sk-chasingDotsRotate{to{transform:rotate(1turn)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]
39
- },] }
40
- ];
41
-
42
- /*
43
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
45
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
46
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
47
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
48
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49
- */
50
- class SkCubeGridComponent extends AbstractLoaderDirective {
51
- }
52
- SkCubeGridComponent.decorators = [
53
- { type: Component, args: [{
54
- selector: 'sk-cube-grid',
55
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-cube-grid\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube5\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube6\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube7\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube8\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube9\" [style.background-color]='backgroundColor'></div>\n</div>\n",
56
- styles: [".sk-cube-grid{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-cube-grid .sk-cube{animation:sk-cubeGridScaleDelay 1.3s ease-in-out infinite;float:left;height:33.33%;width:33.33%}.sk-cube-grid .sk-cube1{animation-delay:.2s}.sk-cube-grid .sk-cube2{animation-delay:.3s}.sk-cube-grid .sk-cube3{animation-delay:.4s}.sk-cube-grid .sk-cube4{animation-delay:.1s}.sk-cube-grid .sk-cube5{animation-delay:.2s}.sk-cube-grid .sk-cube6{animation-delay:.3s}.sk-cube-grid .sk-cube7{animation-delay:0s}.sk-cube-grid .sk-cube8{animation-delay:.1s}.sk-cube-grid .sk-cube9{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scaleX(1)}35%{transform:scale3D(0,0,1)}}"]
57
- },] }
58
- ];
59
-
60
- /*
61
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
63
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
64
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
65
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
66
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
67
- */
68
- class SkDoubleBounceComponent extends AbstractLoaderDirective {
69
- }
70
- SkDoubleBounceComponent.decorators = [
71
- { type: Component, args: [{
72
- selector: 'sk-double-bounce',
73
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-double-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-double-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-double-bounce2\" [style.background-color]='backgroundColor'></div>\n</div>\n",
74
- styles: [".sk-double-bounce{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-double-bounce .sk-child{animation:sk-doubleBounce 2s ease-in-out infinite;background-color:#333;border-radius:50%;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.sk-double-bounce .sk-double-bounce2{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]
75
- },] }
76
- ];
77
-
78
- /*
79
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
80
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
81
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
82
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
83
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
84
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
85
- */
86
- class SkRotatingPlaneComponent extends AbstractLoaderDirective {
87
- }
88
- SkRotatingPlaneComponent.decorators = [
89
- { type: Component, args: [{
90
- selector: 'sk-rotating-plane',
91
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-rotating-plane colored-parent\" [style.background-color]='backgroundColor'></div>\n",
92
- styles: [".sk-rotating-plane{animation:sk-rotatePlane 1.2s ease-in-out infinite;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]
93
- },] }
94
- ];
95
-
96
- /*
97
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
99
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
100
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
101
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
102
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
103
- */
104
- class SkSpinnerPulseComponent extends AbstractLoaderDirective {
105
- }
106
- SkSpinnerPulseComponent.decorators = [
107
- { type: Component, args: [{
108
- selector: 'sk-spinner-pulse',
109
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-spinner sk-spinner-pulse colored-parent\" [style.background-color]='backgroundColor'></div>\n",
110
- styles: [".sk-spinner-pulse{animation:sk-pulseScaleOut 1s ease-in-out infinite;border-radius:100%;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}"]
111
- },] }
112
- ];
113
-
114
- /*
115
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
116
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
117
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
118
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
119
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
120
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
121
- */
122
- class SkThreeBounceComponent extends AbstractLoaderDirective {
123
- }
124
- SkThreeBounceComponent.decorators = [
125
- { type: Component, args: [{
126
- selector: 'sk-three-bounce',
127
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-three-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce3\" [style.background-color]='backgroundColor'></div>\n</div>\n",
128
- styles: [".sk-three-bounce{margin:auto;position:relative;text-align:center;top:50%;width:80px}.sk-three-bounce .sk-child{animation:sk-three-bounce 1.4s ease-in-out 0s infinite both;border-radius:100%;display:inline-block;height:20px;width:20px}.sk-three-bounce .sk-bounce1{animation-delay:-.32s}.sk-three-bounce .sk-bounce2{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]
129
- },] }
130
- ];
131
-
132
- /*
133
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
134
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
135
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
136
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
137
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
138
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
139
- */
140
- class SkWanderingCubesComponent extends AbstractLoaderDirective {
141
- }
142
- SkWanderingCubesComponent.decorators = [
143
- { type: Component, args: [{
144
- selector: 'sk-wandering-cubes',
145
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wandering-cubes\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n</div>\n",
146
- styles: [".sk-wandering-cubes{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-wandering-cubes .sk-cube{animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both;height:10px;left:0;position:absolute;top:0;width:10px}.sk-wandering-cubes .sk-cube2{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0deg)}25%{transform:translateX(30px) rotate(-90deg) scale(.5)}50%{transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-1turn)}}"]
147
- },] }
148
- ];
149
-
150
- /*
151
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
152
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
153
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
154
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
155
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
156
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
157
- */
158
- class SkWaveComponent extends AbstractLoaderDirective {
159
- }
160
- SkWaveComponent.decorators = [
161
- { type: Component, args: [{
162
- selector: 'sk-wave',
163
- template: "<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wave\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-rect sk-rect1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect5\" [style.background-color]='backgroundColor'></div>\n</div>\n",
164
- styles: [".sk-wave{font-size:10px;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:50px}.sk-wave .sk-rect{animation:sk-waveStretchDelay 1.2s ease-in-out infinite;display:inline-block;float:left;height:100%;margin-right:1px;width:6px}.sk-wave .sk-rect1{animation-delay:-1.2s}.sk-wave .sk-rect2{animation-delay:-1.1s}.sk-wave .sk-rect3{animation-delay:-1s}.sk-wave .sk-rect4{animation-delay:-.9s}.sk-wave .sk-rect5{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]
165
- },] }
166
- ];
167
-
168
- /*
169
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
170
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
171
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
172
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
173
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
174
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
175
- */
176
- class PendingRequestsInterceptor {
177
- constructor() {
178
- this._pendingRequests = 0;
179
- this._pendingRequestsStatus$ = new ReplaySubject(1);
180
- this._filteredUrlPatterns = [];
181
- this._filteredMethods = [];
182
- this._filteredHeaders = [];
183
- this._forceByPass = false;
184
- }
185
- get pendingRequestsStatus$() {
186
- return this._pendingRequestsStatus$.asObservable();
187
- }
188
- get pendingRequests() {
189
- return this._pendingRequests;
190
- }
191
- get filteredUrlPatterns() {
192
- return this._filteredUrlPatterns;
193
- }
194
- set filteredMethods(httpMethods) {
195
- this._filteredMethods = httpMethods;
196
- }
197
- set filteredHeaders(value) {
198
- this._filteredHeaders = value;
199
- }
200
- set forceByPass(value) {
201
- this._forceByPass = value;
202
- }
203
- shouldBypassUrl(url) {
204
- return this._filteredUrlPatterns.some(e => {
205
- return e.test(url);
206
- });
207
- }
208
- shouldBypassMethod(req) {
209
- return this._filteredMethods.some(e => {
210
- return e.toUpperCase() === req.method.toUpperCase();
211
- });
212
- }
213
- shouldBypassHeader(req) {
214
- return this._filteredHeaders.some(e => {
215
- return req.headers.has(e);
216
- });
217
- }
218
- shouldBypass(req) {
219
- return this._forceByPass
220
- || this.shouldBypassUrl(req.urlWithParams)
221
- || this.shouldBypassMethod(req)
222
- || this.shouldBypassHeader(req);
223
- }
224
- intercept(req, next) {
225
- const shouldBypass = this.shouldBypass(req);
226
- if (!shouldBypass) {
227
- this._pendingRequests++;
228
- if (1 === this._pendingRequests) {
229
- this._pendingRequestsStatus$.next(true);
230
- }
231
- }
232
- return next.handle(req).pipe(finalize(() => {
233
- if (!shouldBypass) {
234
- this._pendingRequests--;
235
- if (0 === this._pendingRequests) {
236
- this._pendingRequestsStatus$.next(false);
237
- }
238
- }
239
- }));
240
- }
241
- }
242
- PendingRequestsInterceptor.ɵprov = ɵɵdefineInjectable({ factory: function PendingRequestsInterceptor_Factory() { return new PendingRequestsInterceptor(); }, token: PendingRequestsInterceptor, providedIn: "root" });
243
- PendingRequestsInterceptor.decorators = [
244
- { type: Injectable, args: [{
245
- providedIn: 'root'
246
- },] }
247
- ];
248
- const PendingRequestsInterceptorProvider = [{
249
- provide: HTTP_INTERCEPTORS,
250
- useExisting: PendingRequestsInterceptor,
251
- multi: true
252
- }];
253
-
254
- /*
255
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
256
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
257
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
258
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
259
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
260
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
261
- */
262
- class SpinnerVisibilityService {
263
- constructor(pendingRequestsInterceptor) {
264
- this.pendingRequestsInterceptor = pendingRequestsInterceptor;
265
- this._visibility$ = new ReplaySubject(1);
266
- }
267
- get visibility$() {
268
- return this._visibility$.asObservable();
269
- }
270
- show() {
271
- this.pendingRequestsInterceptor.forceByPass = true;
272
- this._visibility$.next(true);
273
- }
274
- hide() {
275
- this._visibility$.next(false);
276
- this.pendingRequestsInterceptor.forceByPass = false;
277
- }
278
- }
279
- SpinnerVisibilityService.ɵprov = ɵɵdefineInjectable({ factory: function SpinnerVisibilityService_Factory() { return new SpinnerVisibilityService(ɵɵinject(PendingRequestsInterceptor)); }, token: SpinnerVisibilityService, providedIn: "root" });
280
- SpinnerVisibilityService.decorators = [
281
- { type: Injectable, args: [{
282
- providedIn: 'root'
283
- },] }
284
- ];
285
- SpinnerVisibilityService.ctorParameters = () => [
286
- { type: PendingRequestsInterceptor }
287
- ];
288
-
289
- /*
290
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
291
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
292
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
293
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
294
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
295
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
296
- */
297
- const Spinkit = {
298
- skChasingDots: 'sk-chasing-dots',
299
- skCubeGrid: 'sk-cube-grid',
300
- skDoubleBounce: 'sk-double-bounce',
301
- skRotatingPlane: 'sk-rotationg-plane',
302
- skSpinnerPulse: 'sk-spinner-pulse',
303
- skThreeBounce: 'sk-three-bounce',
304
- skWanderingCubes: 'sk-wandering-cubes',
305
- skWave: 'sk-wave'
306
- };
307
- const SPINKIT_COMPONENTS = [
308
- SkCubeGridComponent,
309
- SkChasingDotsComponent,
310
- SkDoubleBounceComponent,
311
- SkRotatingPlaneComponent,
312
- SkSpinnerPulseComponent,
313
- SkThreeBounceComponent,
314
- SkWanderingCubesComponent,
315
- SkWaveComponent,
316
- ];
317
-
318
- /*
319
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
320
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
321
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
322
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
323
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
324
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
325
- */
326
- class NgHttpLoaderComponent {
327
- constructor(pendingRequestsInterceptor, spinnerVisibility) {
328
- this.pendingRequestsInterceptor = pendingRequestsInterceptor;
329
- this.spinnerVisibility = spinnerVisibility;
330
- this.spinkit = Spinkit;
331
- this.visibleUntil = Date.now();
332
- this.backdrop = true;
333
- this.debounceDelay = 0;
334
- this.entryComponent = null;
335
- this.extraDuration = 0;
336
- this.filteredHeaders = [];
337
- this.filteredMethods = [];
338
- this.filteredUrlPatterns = [];
339
- this.minDuration = 0;
340
- this.opacity = '.7';
341
- this.spinner = Spinkit.skWave;
342
- }
343
- ngOnInit() {
344
- this.initIsvisibleObservable();
345
- this.nullifySpinnerIfEntryComponentIsDefined();
346
- this.initFilters();
347
- }
348
- initIsvisibleObservable() {
349
- const [showSpinner$, hideSpinner$] = partition(this.pendingRequestsInterceptor.pendingRequestsStatus$, h => h);
350
- this.isVisible$ = merge(this.pendingRequestsInterceptor.pendingRequestsStatus$
351
- .pipe(switchMap(() => showSpinner$.pipe(debounce(() => timer(this.debounceDelay))))), showSpinner$
352
- .pipe(switchMap(() => hideSpinner$.pipe(debounce(() => this.getVisibilityTimer$())))), this.spinnerVisibility.visibility$).pipe(distinctUntilChanged(), tap(h => this.updateExpirationDelay(h)));
353
- }
354
- nullifySpinnerIfEntryComponentIsDefined() {
355
- if (this.entryComponent) {
356
- this.spinner = null;
357
- }
358
- }
359
- initFilters() {
360
- this.initFilteredUrlPatterns();
361
- this.initFilteredMethods();
362
- this.initFilteredHeaders();
363
- }
364
- initFilteredUrlPatterns() {
365
- if (!!this.filteredUrlPatterns.length) {
366
- this.filteredUrlPatterns.forEach(e => this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(e)));
367
- }
368
- }
369
- initFilteredMethods() {
370
- this.pendingRequestsInterceptor.filteredMethods = this.filteredMethods;
371
- }
372
- initFilteredHeaders() {
373
- this.pendingRequestsInterceptor.filteredHeaders = this.filteredHeaders;
374
- }
375
- updateExpirationDelay(showSpinner) {
376
- if (showSpinner) {
377
- this.visibleUntil = Date.now() + this.minDuration;
378
- }
379
- }
380
- getVisibilityTimer$() {
381
- return timer(Math.max(this.extraDuration, this.visibleUntil - Date.now()));
382
- }
383
- }
384
- NgHttpLoaderComponent.decorators = [
385
- { type: Component, args: [{
386
- selector: 'ng-http-loader',
387
- template: "<div id=\"spinner\"\n *ngIf=\"isVisible$ | async\"\n [class.backdrop]=\"backdrop\"\n [style.opacity]=\"opacity\">\n\n <ng-container *ngComponentOutlet=\"entryComponent\"></ng-container>\n\n <sk-cube-grid\n *ngIf=\"spinner === spinkit.skCubeGrid\"\n [backgroundColor]=\"backgroundColor\">\n </sk-cube-grid>\n\n <sk-chasing-dots\n *ngIf=\"spinner === spinkit.skChasingDots\"\n [backgroundColor]=\"backgroundColor\">\n </sk-chasing-dots>\n\n <sk-double-bounce\n *ngIf=\"spinner === spinkit.skDoubleBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-double-bounce>\n\n <sk-rotating-plane\n *ngIf=\"spinner === spinkit.skRotatingPlane\"\n [backgroundColor]=\"backgroundColor\">\n </sk-rotating-plane>\n\n <sk-spinner-pulse\n *ngIf=\"spinner === spinkit.skSpinnerPulse\"\n [backgroundColor]=\"backgroundColor\">\n </sk-spinner-pulse>\n\n <sk-three-bounce\n *ngIf=\"spinner === spinkit.skThreeBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-three-bounce>\n\n <sk-wandering-cubes\n *ngIf=\"spinner === spinkit.skWanderingCubes\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wandering-cubes>\n\n <sk-wave\n *ngIf=\"spinner === spinkit.skWave\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wave>\n\n</div>\n\n",
388
- styles: ["#spinner{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:9999}#spinner.backdrop{align-items:center;background-color:#f1f1f1;display:flex;height:100%;justify-content:center;left:0;top:0;transform:none;width:100%}::ng-deep .colored-parent,::ng-deep .colored>div{background-color:#333}"]
389
- },] }
390
- ];
391
- NgHttpLoaderComponent.ctorParameters = () => [
392
- { type: PendingRequestsInterceptor },
393
- { type: SpinnerVisibilityService }
394
- ];
395
- NgHttpLoaderComponent.propDecorators = {
396
- backdrop: [{ type: Input }],
397
- backgroundColor: [{ type: Input }],
398
- debounceDelay: [{ type: Input }],
399
- entryComponent: [{ type: Input }],
400
- extraDuration: [{ type: Input }],
401
- filteredHeaders: [{ type: Input }],
402
- filteredMethods: [{ type: Input }],
403
- filteredUrlPatterns: [{ type: Input }],
404
- minDuration: [{ type: Input }],
405
- opacity: [{ type: Input }],
406
- spinner: [{ type: Input }]
407
- };
408
-
409
- /*
410
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
411
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
412
- * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
413
- * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
414
- * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
415
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
416
- */
417
- class NgHttpLoaderModule {
418
- static forRoot() {
419
- return {
420
- ngModule: NgHttpLoaderModule,
421
- providers: [
422
- PendingRequestsInterceptorProvider,
423
- ]
424
- };
425
- }
426
- }
427
- NgHttpLoaderModule.decorators = [
428
- { type: NgModule, args: [{
429
- declarations: [
430
- NgHttpLoaderComponent,
431
- ...SPINKIT_COMPONENTS,
432
- ],
433
- imports: [
434
- CommonModule,
435
- ],
436
- exports: [
437
- NgHttpLoaderComponent,
438
- ...SPINKIT_COMPONENTS,
439
- ]
440
- },] }
441
- ];
442
-
443
- /*
444
- * Public API Surface of ng-http-loader
445
- */
446
-
447
- /**
448
- * Generated bundle index. Do not edit.
449
- */
450
-
451
- export { AbstractLoaderDirective, NgHttpLoaderComponent, NgHttpLoaderModule, PendingRequestsInterceptor, PendingRequestsInterceptorProvider, SPINKIT_COMPONENTS, SkChasingDotsComponent, SkCubeGridComponent, SkDoubleBounceComponent, SkRotatingPlaneComponent, SkSpinnerPulseComponent, SkThreeBounceComponent, SkWanderingCubesComponent, SkWaveComponent, Spinkit, SpinnerVisibilityService };
452
- //# sourceMappingURL=ng-http-loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-http-loader.js","sources":["../src/lib/components/abstract.loader.directive.ts","../esm2015/src/lib/components/sk-chasing-dots/sk-chasing-dots.component.ts","../esm2015/src/lib/components/sk-cube-grid/sk-cube-grid.component.ts","../esm2015/src/lib/components/sk-double-bounce/sk-double-bounce.component.ts","../esm2015/src/lib/components/sk-rotating-plane/sk-rotating-plane.component.ts","../esm2015/src/lib/components/sk-spinner-pulse/sk-spinner-pulse.component.ts","../esm2015/src/lib/components/sk-three-bounce/sk-three-bounce.component.ts","../esm2015/src/lib/components/sk-wandering-cubes/sk-wandering-cubes.component.ts","../esm2015/src/lib/components/sk-wave/sk-wave.component.ts","../src/lib/services/pending-requests-interceptor.service.ts","../src/lib/services/spinner-visibility.service.ts","../../src/lib/spinkits.ts","../src/lib/components/ng-http-loader.component.ts","../../src/lib/ng-http-loader.module.ts","../../../src/public_api.ts","../../../src/ng-http-loader.ts"],"sourcesContent":["/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Input, Directive } from '@angular/core';\n\n@Directive()\nexport abstract class AbstractLoaderDirective {\n\n @Input() public backgroundColor!: string;\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-chasing-dots',\n templateUrl: './sk-chasing-dots.component.html',\n styleUrls: ['./sk-chasing-dots.component.scss']\n})\nexport class SkChasingDotsComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-cube-grid',\n templateUrl: './sk-cube-grid.component.html',\n styleUrls: ['./sk-cube-grid.component.scss']\n})\nexport class SkCubeGridComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-double-bounce',\n templateUrl: './sk-double-bounce.component.html',\n styleUrls: ['./sk-double-bounce.component.scss']\n})\nexport class SkDoubleBounceComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-rotating-plane',\n templateUrl: './sk-rotating-plane.component.html',\n styleUrls: ['./sk-rotating-plane.component.scss']\n})\nexport class SkRotatingPlaneComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-spinner-pulse',\n templateUrl: './sk-spinner-pulse.component.html',\n styleUrls: ['./sk-spinner-pulse.component.scss']\n})\nexport class SkSpinnerPulseComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-three-bounce',\n templateUrl: './sk-three-bounce.component.html',\n styleUrls: ['./sk-three-bounce.component.scss']\n})\nexport class SkThreeBounceComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-wandering-cubes',\n templateUrl: './sk-wandering-cubes.component.html',\n styleUrls: ['./sk-wandering-cubes.component.scss']\n})\nexport class SkWanderingCubesComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component } from '@angular/core';\nimport { AbstractLoaderDirective } from '../abstract.loader.directive';\n\n@Component({\n selector: 'sk-wave',\n templateUrl: './sk-wave.component.html',\n styleUrls: ['./sk-wave.component.scss']\n})\nexport class SkWaveComponent extends AbstractLoaderDirective {\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { HTTP_INTERCEPTORS, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';\nimport { ExistingProvider, Injectable } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { finalize } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PendingRequestsInterceptor implements HttpInterceptor {\n\n private _pendingRequests = 0;\n private _pendingRequestsStatus$ = new ReplaySubject<boolean>(1);\n private _filteredUrlPatterns: RegExp[] = [];\n private _filteredMethods: string[] = [];\n private _filteredHeaders: string[] = [];\n private _forceByPass = false;\n\n get pendingRequestsStatus$(): Observable<boolean> {\n return this._pendingRequestsStatus$.asObservable();\n }\n\n get pendingRequests(): number {\n return this._pendingRequests;\n }\n\n get filteredUrlPatterns(): RegExp[] {\n return this._filteredUrlPatterns;\n }\n\n set filteredMethods(httpMethods: string[]) {\n this._filteredMethods = httpMethods;\n }\n\n set filteredHeaders(value: string[]) {\n this._filteredHeaders = value;\n }\n\n set forceByPass(value: boolean) {\n this._forceByPass = value;\n }\n\n private shouldBypassUrl(url: string): boolean {\n return this._filteredUrlPatterns.some(e => {\n return e.test(url);\n });\n }\n\n private shouldBypassMethod(req: HttpRequest<any>): boolean {\n return this._filteredMethods.some(e => {\n return e.toUpperCase() === req.method.toUpperCase();\n });\n }\n\n private shouldBypassHeader(req: HttpRequest<any>): boolean {\n return this._filteredHeaders.some(e => {\n return req.headers.has(e);\n });\n }\n\n private shouldBypass(req: HttpRequest<any>): boolean {\n return this._forceByPass\n || this.shouldBypassUrl(req.urlWithParams)\n || this.shouldBypassMethod(req)\n || this.shouldBypassHeader(req);\n }\n\n public intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\n const shouldBypass = this.shouldBypass(req);\n\n if (!shouldBypass) {\n this._pendingRequests++;\n\n if (1 === this._pendingRequests) {\n this._pendingRequestsStatus$.next(true);\n }\n }\n\n return next.handle(req).pipe(\n finalize(() => {\n if (!shouldBypass) {\n this._pendingRequests--;\n\n if (0 === this._pendingRequests) {\n this._pendingRequestsStatus$.next(false);\n }\n }\n })\n );\n }\n}\n\nexport const PendingRequestsInterceptorProvider: ExistingProvider[] = [{\n provide: HTTP_INTERCEPTORS,\n useExisting: PendingRequestsInterceptor,\n multi: true\n}];\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Injectable } from '@angular/core';\nimport { Observable, ReplaySubject } from 'rxjs';\nimport { PendingRequestsInterceptor } from './pending-requests-interceptor.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SpinnerVisibilityService {\n\n private _visibility$ = new ReplaySubject<boolean>(1);\n\n constructor(private pendingRequestsInterceptor: PendingRequestsInterceptor) {\n }\n\n get visibility$(): Observable<boolean> {\n return this._visibility$.asObservable();\n }\n\n public show(): void {\n this.pendingRequestsInterceptor.forceByPass = true;\n this._visibility$.next(true);\n }\n\n public hide(): void {\n this._visibility$.next(false);\n this.pendingRequestsInterceptor.forceByPass = false;\n }\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { SkChasingDotsComponent } from './components/sk-chasing-dots/sk-chasing-dots.component';\nimport { SkCubeGridComponent } from './components/sk-cube-grid/sk-cube-grid.component';\nimport { SkDoubleBounceComponent } from './components/sk-double-bounce/sk-double-bounce.component';\nimport { SkRotatingPlaneComponent } from './components/sk-rotating-plane/sk-rotating-plane.component';\nimport { SkSpinnerPulseComponent } from './components/sk-spinner-pulse/sk-spinner-pulse.component';\nimport { SkThreeBounceComponent } from './components/sk-three-bounce/sk-three-bounce.component';\nimport { SkWanderingCubesComponent } from './components/sk-wandering-cubes/sk-wandering-cubes.component';\nimport { SkWaveComponent } from './components/sk-wave/sk-wave.component';\n\nexport const Spinkit = {\n skChasingDots: 'sk-chasing-dots',\n skCubeGrid: 'sk-cube-grid',\n skDoubleBounce: 'sk-double-bounce',\n skRotatingPlane: 'sk-rotationg-plane',\n skSpinnerPulse: 'sk-spinner-pulse',\n skThreeBounce: 'sk-three-bounce',\n skWanderingCubes: 'sk-wandering-cubes',\n skWave: 'sk-wave'\n};\n\nexport const SPINKIT_COMPONENTS = [\n SkCubeGridComponent,\n SkChasingDotsComponent,\n SkDoubleBounceComponent,\n SkRotatingPlaneComponent,\n SkSpinnerPulseComponent,\n SkThreeBounceComponent,\n SkWanderingCubesComponent,\n SkWaveComponent,\n];\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { Component, Input, OnInit } from '@angular/core';\nimport { merge, Observable, partition, timer } from 'rxjs';\nimport { debounce, distinctUntilChanged, switchMap, tap } from 'rxjs/operators';\nimport { PendingRequestsInterceptor } from '../services/pending-requests-interceptor.service';\nimport { SpinnerVisibilityService } from '../services/spinner-visibility.service';\nimport { Spinkit } from '../spinkits';\n\n@Component({\n selector: 'ng-http-loader',\n templateUrl: './ng-http-loader.component.html',\n styleUrls: ['./ng-http-loader.component.scss']\n})\nexport class NgHttpLoaderComponent implements OnInit {\n\n public spinkit = Spinkit;\n public isVisible$!: Observable<boolean>;\n private visibleUntil = Date.now();\n\n @Input() public backdrop = true;\n @Input() public backgroundColor!: string;\n @Input() public debounceDelay = 0;\n @Input() public entryComponent: any = null;\n @Input() public extraDuration = 0;\n @Input() public filteredHeaders: string[] = [];\n @Input() public filteredMethods: string[] = [];\n @Input() public filteredUrlPatterns: string[] = [];\n @Input() public minDuration = 0;\n @Input() public opacity = '.7';\n @Input() public spinner: string | null = Spinkit.skWave;\n\n constructor(private pendingRequestsInterceptor: PendingRequestsInterceptor, private spinnerVisibility: SpinnerVisibilityService) {\n }\n\n public ngOnInit(): void {\n this.initIsvisibleObservable();\n this.nullifySpinnerIfEntryComponentIsDefined();\n this.initFilters();\n }\n\n private initIsvisibleObservable(): void {\n const [showSpinner$, hideSpinner$] = partition(this.pendingRequestsInterceptor.pendingRequestsStatus$, h => h);\n\n this.isVisible$ = merge(\n this.pendingRequestsInterceptor.pendingRequestsStatus$\n .pipe(switchMap(() => showSpinner$.pipe(debounce(() => timer(this.debounceDelay))))),\n showSpinner$\n .pipe(switchMap(() => hideSpinner$.pipe(debounce(() => this.getVisibilityTimer$())))),\n this.spinnerVisibility.visibility$\n ).pipe(\n distinctUntilChanged(),\n tap(h => this.updateExpirationDelay(h))\n );\n }\n\n private nullifySpinnerIfEntryComponentIsDefined(): void {\n if (this.entryComponent) {\n this.spinner = null;\n }\n }\n\n private initFilters(): void {\n this.initFilteredUrlPatterns();\n this.initFilteredMethods();\n this.initFilteredHeaders();\n }\n\n private initFilteredUrlPatterns(): void {\n if (!!this.filteredUrlPatterns.length) {\n this.filteredUrlPatterns.forEach(e =>\n this.pendingRequestsInterceptor.filteredUrlPatterns.push(new RegExp(e))\n );\n }\n }\n\n private initFilteredMethods(): void {\n this.pendingRequestsInterceptor.filteredMethods = this.filteredMethods;\n }\n\n private initFilteredHeaders(): void {\n this.pendingRequestsInterceptor.filteredHeaders = this.filteredHeaders;\n }\n\n private updateExpirationDelay(showSpinner: boolean): void {\n if (showSpinner) {\n this.visibleUntil = Date.now() + this.minDuration;\n }\n }\n\n private getVisibilityTimer$(): Observable<number> {\n return timer(Math.max(this.extraDuration, this.visibleUntil - Date.now()));\n }\n}\n","/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { NgHttpLoaderComponent } from './components/ng-http-loader.component';\nimport { PendingRequestsInterceptorProvider } from './services/pending-requests-interceptor.service';\nimport { SPINKIT_COMPONENTS } from './spinkits';\n\n@NgModule({\n declarations: [\n NgHttpLoaderComponent,\n ...SPINKIT_COMPONENTS,\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n NgHttpLoaderComponent,\n ...SPINKIT_COMPONENTS,\n ]\n})\nexport class NgHttpLoaderModule {\n public static forRoot(): ModuleWithProviders<NgHttpLoaderModule> {\n return {\n ngModule: NgHttpLoaderModule,\n providers: [\n PendingRequestsInterceptorProvider,\n ]\n };\n }\n}\n","/*\n * Public API Surface of ng-http-loader\n */\n\nexport * from './lib/components/sk-chasing-dots/sk-chasing-dots.component';\nexport * from './lib/components/sk-cube-grid/sk-cube-grid.component';\nexport * from './lib/components/sk-double-bounce/sk-double-bounce.component';\nexport * from './lib/components/sk-rotating-plane/sk-rotating-plane.component';\nexport * from './lib/components/sk-spinner-pulse/sk-spinner-pulse.component';\nexport * from './lib/components/sk-three-bounce/sk-three-bounce.component';\nexport * from './lib/components/sk-wandering-cubes/sk-wandering-cubes.component';\nexport * from './lib/components/sk-wave/sk-wave.component';\nexport * from './lib/components/ng-http-loader.component';\nexport * from './lib/components/abstract.loader.directive';\n\nexport * from './lib/services/pending-requests-interceptor.service';\nexport * from './lib/services/spinner-visibility.service';\n\nexport * from './lib/ng-http-loader.module';\nexport * from './lib/spinkits';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;MAYsB,uBAAuB;;;YAD5C,SAAS;;;8BAGL,KAAK;;;ACdV;;;;;;;;MAiBa,sBAAuB,SAAQ,uBAAuB;;;YALlE,SAAS,SAAC;gBACP,QAAQ,EAAE,iBAAiB;gBAC3B,20CAA+C;;aAElD;;;AChBD;;;;;;;;MAiBa,mBAAoB,SAAQ,uBAAuB;;;YAL/D,SAAS,SAAC;gBACP,QAAQ,EAAE,cAAc;gBACxB,y6DAA4C;;aAE/C;;;AChBD;;;;;;;;MAiBa,uBAAwB,SAAQ,uBAAuB;;;YALnE,SAAS,SAAC;gBACP,QAAQ,EAAE,kBAAkB;gBAC5B,g2CAAgD;;aAEnD;;;AChBD;;;;;;;;MAiBa,wBAAyB,SAAQ,uBAAuB;;;YALpE,SAAS,SAAC;gBACP,QAAQ,EAAE,mBAAmB;gBAC7B,krCAAiD;;aAEpD;;;AChBD;;;;;;;;MAiBa,uBAAwB,SAAQ,uBAAuB;;;YALnE,SAAS,SAAC;gBACP,QAAQ,EAAE,kBAAkB;gBAC5B,4rCAAgD;;aAEnD;;;AChBD;;;;;;;;MAiBa,sBAAuB,SAAQ,uBAAuB;;;YALlE,SAAS,SAAC;gBACP,QAAQ,EAAE,iBAAiB;gBAC3B,26CAA+C;;aAElD;;;AChBD;;;;;;;;MAiBa,yBAA0B,SAAQ,uBAAuB;;;YALrE,SAAS,SAAC;gBACP,QAAQ,EAAE,oBAAoB;gBAC9B,80CAAkD;;aAErD;;;AChBD;;;;;;;;MAiBa,eAAgB,SAAQ,uBAAuB;;;YAL3D,SAAS,SAAC;gBACP,QAAQ,EAAE,SAAS;gBACnB,wkDAAuC;;aA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;"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"SkChasingDotsComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-chasing-dots","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-chasing-dots\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-dot1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-dot2\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-chasing-dots{animation:sk-chasingDotsRotate 2s linear infinite;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:40px}.sk-chasing-dots .sk-child{animation:sk-chasingDotsBounce 2s ease-in-out infinite;border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}.sk-chasing-dots .sk-dot2{animation-delay:-1s;bottom:0;top:auto}@keyframes sk-chasingDotsRotate{to{transform:rotate(1turn)}}@keyframes sk-chasingDotsBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}]}],"members":{}},"SkCubeGridComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-cube-grid","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-cube-grid\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube5\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube6\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube7\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube8\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube9\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-cube-grid{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-cube-grid .sk-cube{animation:sk-cubeGridScaleDelay 1.3s ease-in-out infinite;float:left;height:33.33%;width:33.33%}.sk-cube-grid .sk-cube1{animation-delay:.2s}.sk-cube-grid .sk-cube2{animation-delay:.3s}.sk-cube-grid .sk-cube3{animation-delay:.4s}.sk-cube-grid .sk-cube4{animation-delay:.1s}.sk-cube-grid .sk-cube5{animation-delay:.2s}.sk-cube-grid .sk-cube6{animation-delay:.3s}.sk-cube-grid .sk-cube7{animation-delay:0s}.sk-cube-grid .sk-cube8{animation-delay:.1s}.sk-cube-grid .sk-cube9{animation-delay:.2s}@keyframes sk-cubeGridScaleDelay{0%,70%,to{transform:scaleX(1)}35%{transform:scale3D(0,0,1)}}"]}]}],"members":{}},"SkDoubleBounceComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-double-bounce","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-double-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-double-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-double-bounce2\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-double-bounce{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-double-bounce .sk-child{animation:sk-doubleBounce 2s ease-in-out infinite;background-color:#333;border-radius:50%;height:100%;left:0;opacity:.6;position:absolute;top:0;width:100%}.sk-double-bounce .sk-double-bounce2{animation-delay:-1s}@keyframes sk-doubleBounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}"]}]}],"members":{}},"SkRotatingPlaneComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-rotating-plane","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-rotating-plane colored-parent\" [style.background-color]='backgroundColor'></div>\n","styles":[".sk-rotating-plane{animation:sk-rotatePlane 1.2s ease-in-out infinite;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-rotatePlane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"]}]}],"members":{}},"SkSpinnerPulseComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-spinner-pulse","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-spinner sk-spinner-pulse colored-parent\" [style.background-color]='backgroundColor'></div>\n","styles":[".sk-spinner-pulse{animation:sk-pulseScaleOut 1s ease-in-out infinite;border-radius:100%;height:40px;margin:auto;position:relative;top:50%;width:40px}@keyframes sk-pulseScaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}"]}]}],"members":{}},"SkThreeBounceComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-three-bounce","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-three-bounce\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-child sk-bounce1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-child sk-bounce3\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-three-bounce{margin:auto;position:relative;text-align:center;top:50%;width:80px}.sk-three-bounce .sk-child{animation:sk-three-bounce 1.4s ease-in-out 0s infinite both;border-radius:100%;display:inline-block;height:20px;width:20px}.sk-three-bounce .sk-bounce1{animation-delay:-.32s}.sk-three-bounce .sk-bounce2{animation-delay:-.16s}@keyframes sk-three-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}"]}]}],"members":{}},"SkWanderingCubesComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-wandering-cubes","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wandering-cubes\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-cube sk-cube1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-cube sk-cube2\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-wandering-cubes{height:40px;margin:auto;position:relative;top:50%;width:40px}.sk-wandering-cubes .sk-cube{animation:sk-wanderingCube 1.8s ease-in-out -1.8s infinite both;height:10px;left:0;position:absolute;top:0;width:10px}.sk-wandering-cubes .sk-cube2{animation-delay:-.9s}@keyframes sk-wanderingCube{0%{transform:rotate(0deg)}25%{transform:translateX(30px) rotate(-90deg) scale(.5)}50%{transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}to{transform:rotate(-1turn)}}"]}]}],"members":{}},"SkWaveComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"AbstractLoaderDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"sk-wave","template":"<!--\nCopyright (c) 2015 Tobias Ahlin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n-->\n\n<div class=\"sk-wave\" [class.colored]=\"!backgroundColor\">\n <div class=\"sk-rect sk-rect1\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect2\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect3\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect4\" [style.background-color]='backgroundColor'></div>\n <div class=\"sk-rect sk-rect5\" [style.background-color]='backgroundColor'></div>\n</div>\n","styles":[".sk-wave{font-size:10px;height:40px;margin:auto;position:relative;text-align:center;top:50%;width:50px}.sk-wave .sk-rect{animation:sk-waveStretchDelay 1.2s ease-in-out infinite;display:inline-block;float:left;height:100%;margin-right:1px;width:6px}.sk-wave .sk-rect1{animation-delay:-1.2s}.sk-wave .sk-rect2{animation-delay:-1.1s}.sk-wave .sk-rect3{animation-delay:-1s}.sk-wave .sk-rect4{animation-delay:-.9s}.sk-wave .sk-rect5{animation-delay:-.8s}@keyframes sk-waveStretchDelay{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}"]}]}],"members":{}},"NgHttpLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":16,"character":1},"arguments":[{"selector":"ng-http-loader","template":"<div id=\"spinner\"\n *ngIf=\"isVisible$ | async\"\n [class.backdrop]=\"backdrop\"\n [style.opacity]=\"opacity\">\n\n <ng-container *ngComponentOutlet=\"entryComponent\"></ng-container>\n\n <sk-cube-grid\n *ngIf=\"spinner === spinkit.skCubeGrid\"\n [backgroundColor]=\"backgroundColor\">\n </sk-cube-grid>\n\n <sk-chasing-dots\n *ngIf=\"spinner === spinkit.skChasingDots\"\n [backgroundColor]=\"backgroundColor\">\n </sk-chasing-dots>\n\n <sk-double-bounce\n *ngIf=\"spinner === spinkit.skDoubleBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-double-bounce>\n\n <sk-rotating-plane\n *ngIf=\"spinner === spinkit.skRotatingPlane\"\n [backgroundColor]=\"backgroundColor\">\n </sk-rotating-plane>\n\n <sk-spinner-pulse\n *ngIf=\"spinner === spinkit.skSpinnerPulse\"\n [backgroundColor]=\"backgroundColor\">\n </sk-spinner-pulse>\n\n <sk-three-bounce\n *ngIf=\"spinner === spinkit.skThreeBounce\"\n [backgroundColor]=\"backgroundColor\">\n </sk-three-bounce>\n\n <sk-wandering-cubes\n *ngIf=\"spinner === spinkit.skWanderingCubes\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wandering-cubes>\n\n <sk-wave\n *ngIf=\"spinner === spinkit.skWave\"\n [backgroundColor]=\"backgroundColor\">\n </sk-wave>\n\n</div>\n\n","styles":["#spinner{left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);z-index:9999}#spinner.backdrop{align-items:center;background-color:#f1f1f1;display:flex;height:100%;justify-content:center;left:0;top:0;transform:none;width:100%}::ng-deep .colored-parent,::ng-deep .colored>div{background-color:#333}"]}]}],"members":{"backdrop":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":27,"character":5}}]}],"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":5}}]}],"debounceDelay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":5}}]}],"entryComponent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":5}}]}],"extraDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":5}}]}],"filteredHeaders":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":5}}]}],"filteredMethods":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":5}}]}],"filteredUrlPatterns":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":5}}]}],"minDuration":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"opacity":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":36,"character":5}}]}],"spinner":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"PendingRequestsInterceptor"},{"__symbolic":"reference","name":"SpinnerVisibilityService"}]}],"ngOnInit":[{"__symbolic":"method"}],"initIsvisibleObservable":[{"__symbolic":"method"}],"nullifySpinnerIfEntryComponentIsDefined":[{"__symbolic":"method"}],"initFilters":[{"__symbolic":"method"}],"initFilteredUrlPatterns":[{"__symbolic":"method"}],"initFilteredMethods":[{"__symbolic":"method"}],"initFilteredHeaders":[{"__symbolic":"method"}],"updateExpirationDelay":[{"__symbolic":"method"}],"getVisibilityTimer$":[{"__symbolic":"method"}]}},"AbstractLoaderDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":11,"character":1}}],"members":{"backgroundColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5}}]}]}},"PendingRequestsInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":14,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"shouldBypassUrl":[{"__symbolic":"method"}],"shouldBypassMethod":[{"__symbolic":"method"}],"shouldBypassHeader":[{"__symbolic":"method"}],"shouldBypass":[{"__symbolic":"method"}],"intercept":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"PendingRequestsInterceptorProvider":[{"provide":{"__symbolic":"reference","module":"@angular/common/http","name":"HTTP_INTERCEPTORS","line":101,"character":13},"useExisting":{"__symbolic":"reference","name":"PendingRequestsInterceptor"},"multi":true}],"SpinnerVisibilityService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":13,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"PendingRequestsInterceptor"}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"NgHttpLoaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":15,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgHttpLoaderComponent"},{"__symbolic":"spread","expression":{"__symbolic":"reference","name":"SPINKIT_COMPONENTS"}}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":8}],"exports":[{"__symbolic":"reference","name":"NgHttpLoaderComponent"},{"__symbolic":"spread","expression":{"__symbolic":"reference","name":"SPINKIT_COMPONENTS"}}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"NgHttpLoaderModule"},"providers":[{"__symbolic":"reference","name":"PendingRequestsInterceptorProvider"}]}}}},"Spinkit":{"skChasingDots":"sk-chasing-dots","skCubeGrid":"sk-cube-grid","skDoubleBounce":"sk-double-bounce","skRotatingPlane":"sk-rotationg-plane","skSpinnerPulse":"sk-spinner-pulse","skThreeBounce":"sk-three-bounce","skWanderingCubes":"sk-wandering-cubes","skWave":"sk-wave"},"SPINKIT_COMPONENTS":[{"__symbolic":"reference","name":"SkCubeGridComponent"},{"__symbolic":"reference","name":"SkChasingDotsComponent"},{"__symbolic":"reference","name":"SkDoubleBounceComponent"},{"__symbolic":"reference","name":"SkRotatingPlaneComponent"},{"__symbolic":"reference","name":"SkSpinnerPulseComponent"},{"__symbolic":"reference","name":"SkThreeBounceComponent"},{"__symbolic":"reference","name":"SkWanderingCubesComponent"},{"__symbolic":"reference","name":"SkWaveComponent"}]},"origins":{"SkChasingDotsComponent":"./lib/components/sk-chasing-dots/sk-chasing-dots.component","SkCubeGridComponent":"./lib/components/sk-cube-grid/sk-cube-grid.component","SkDoubleBounceComponent":"./lib/components/sk-double-bounce/sk-double-bounce.component","SkRotatingPlaneComponent":"./lib/components/sk-rotating-plane/sk-rotating-plane.component","SkSpinnerPulseComponent":"./lib/components/sk-spinner-pulse/sk-spinner-pulse.component","SkThreeBounceComponent":"./lib/components/sk-three-bounce/sk-three-bounce.component","SkWanderingCubesComponent":"./lib/components/sk-wandering-cubes/sk-wandering-cubes.component","SkWaveComponent":"./lib/components/sk-wave/sk-wave.component","NgHttpLoaderComponent":"./lib/components/ng-http-loader.component","AbstractLoaderDirective":"./lib/components/abstract.loader.directive","PendingRequestsInterceptor":"./lib/services/pending-requests-interceptor.service","PendingRequestsInterceptorProvider":"./lib/services/pending-requests-interceptor.service","SpinnerVisibilityService":"./lib/services/spinner-visibility.service","NgHttpLoaderModule":"./lib/ng-http-loader.module","Spinkit":"./lib/spinkits","SPINKIT_COMPONENTS":"./lib/spinkits"},"importAs":"ng-http-loader"}