ngx-skeleton-loader 3.0.0 → 6.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.
@@ -1,210 +0,0 @@
1
- import { InjectionToken, isDevMode, Component, ChangeDetectionStrategy, Inject, Optional, Input, NgModule, SkipSelf } from '@angular/core';
2
- import { start, end } from 'perf-marks/marks';
3
- import { CommonModule } from '@angular/common';
4
-
5
- /**
6
- * @fileoverview added by tsickle
7
- * Generated from: lib/ngx-skeleton-loader-config.types.ts
8
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9
- */
10
- /**
11
- * @record
12
- */
13
- function NgxSkeletonLoaderConfig() { }
14
- if (false) {
15
- /** @type {?} */
16
- NgxSkeletonLoaderConfig.prototype.appearance;
17
- /** @type {?} */
18
- NgxSkeletonLoaderConfig.prototype.animation;
19
- /** @type {?} */
20
- NgxSkeletonLoaderConfig.prototype.theme;
21
- /** @type {?} */
22
- NgxSkeletonLoaderConfig.prototype.loadingText;
23
- /** @type {?} */
24
- NgxSkeletonLoaderConfig.prototype.count;
25
- /** @type {?} */
26
- NgxSkeletonLoaderConfig.prototype.ariaLabel;
27
- }
28
- /** @type {?} */
29
- const NGX_SKELETON_LOADER_CONFIG = new InjectionToken('ngx-skeleton-loader.config');
30
-
31
- /**
32
- * @fileoverview added by tsickle
33
- * Generated from: lib/ngx-skeleton-loader.component.ts
34
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
35
- */
36
- class NgxSkeletonLoaderComponent {
37
- /**
38
- * @param {?=} config
39
- */
40
- constructor(config) {
41
- const { appearance = 'line', animation = 'progress', theme = null, loadingText = 'Loading...', count = 1, ariaLabel = 'loading', } = config || {};
42
- this.appearance = appearance;
43
- this.animation = animation;
44
- this.theme = theme;
45
- this.loadingText = loadingText;
46
- this.count = count;
47
- this.items = [];
48
- this.ariaLabel = ariaLabel;
49
- }
50
- /**
51
- * @return {?}
52
- */
53
- ngOnInit() {
54
- start('NgxSkeletonLoader:Rendered');
55
- start('NgxSkeletonLoader:Loaded');
56
- this.validateInputValues();
57
- }
58
- /**
59
- * @private
60
- * @return {?}
61
- */
62
- validateInputValues() {
63
- // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)
64
- if (!/^\d+$/.test(`${this.count}`)) {
65
- // Shows error message only in Development
66
- if (isDevMode()) {
67
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'count' a numeric value. Forcing default to "1".`);
68
- }
69
- this.count = 1;
70
- }
71
- this.items.length = this.count;
72
- /** @type {?} */
73
- const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
74
- if (allowedAnimations.indexOf(String(this.animation)) === -1) {
75
- // Shows error message only in Development
76
- if (isDevMode()) {
77
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${allowedAnimations.join(', ')}. Forcing default to "progress".`);
78
- }
79
- this.animation = 'progress';
80
- }
81
- if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {
82
- // Shows error message only in Development
83
- if (isDevMode()) {
84
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'appearance' as: circle or line or empty string. Forcing default to "''".`);
85
- }
86
- this.appearance = '';
87
- }
88
- }
89
- /**
90
- * @param {?} changes
91
- * @return {?}
92
- */
93
- ngOnChanges(changes) {
94
- // Avoiding multiple calls for the same input in case there's no changes in the fields
95
- // Checking if the fields that require validation are available and if they were changed
96
- // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.
97
- if (['count', 'animation', 'appearance'].find((/**
98
- * @param {?} key
99
- * @return {?}
100
- */
101
- key => changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue)))) {
102
- return;
103
- }
104
- this.validateInputValues();
105
- }
106
- /**
107
- * @return {?}
108
- */
109
- ngAfterViewInit() {
110
- end('NgxSkeletonLoader:Rendered');
111
- }
112
- /**
113
- * @return {?}
114
- */
115
- ngOnDestroy() {
116
- end('NgxSkeletonLoader:Loaded');
117
- }
118
- }
119
- NgxSkeletonLoaderComponent.decorators = [
120
- { type: Component, args: [{
121
- selector: 'ngx-skeleton-loader',
122
- template: "<span\n *ngFor=\"let item of items\"\n class=\"loader\"\n [attr.aria-label]=\"ariaLabel\"\n aria-busy=\"true\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuetext]=\"loadingText\"\n role=\"progressbar\"\n tabindex=\"0\"\n [ngClass]=\"{\n circle: appearance === 'circle',\n progress: animation === 'progress',\n 'progress-dark': animation === 'progress-dark',\n pulse: animation === 'pulse'\n }\"\n [ngStyle]=\"theme\"\n>\n</span>\n",
123
- changeDetection: ChangeDetectionStrategy.OnPush,
124
- styles: [".loader{background:#eff1f6 no-repeat;border-radius:4px;box-sizing:border-box;display:inline-block;height:20px;margin-bottom:10px;overflow:hidden;position:relative;width:100%;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{border-radius:50%;height:40px;margin:5px;width:40px}.loader.progress,.loader.progress-dark{transform:translateZ(0)}.loader.progress-dark:after,.loader.progress-dark:before,.loader.progress:after,.loader.progress:before{box-sizing:border-box}.loader.progress-dark:before,.loader.progress:before{-webkit-animation:progress 2s ease-in-out infinite;animation:progress 2s ease-in-out infinite;background-size:200px 100%;content:\"\";height:100%;left:0;position:absolute;top:0;width:200px;z-index:1}.loader.progress:before{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}.loader.progress-dark:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}"]
125
- }] }
126
- ];
127
- /** @nocollapse */
128
- NgxSkeletonLoaderComponent.ctorParameters = () => [
129
- { type: undefined, decorators: [{ type: Inject, args: [NGX_SKELETON_LOADER_CONFIG,] }, { type: Optional }] }
130
- ];
131
- NgxSkeletonLoaderComponent.propDecorators = {
132
- count: [{ type: Input }],
133
- loadingText: [{ type: Input }],
134
- appearance: [{ type: Input }],
135
- animation: [{ type: Input }],
136
- ariaLabel: [{ type: Input }],
137
- theme: [{ type: Input }]
138
- };
139
- if (false) {
140
- /** @type {?} */
141
- NgxSkeletonLoaderComponent.ngAcceptInputType_count;
142
- /** @type {?} */
143
- NgxSkeletonLoaderComponent.ngAcceptInputType_animation;
144
- /** @type {?} */
145
- NgxSkeletonLoaderComponent.prototype.count;
146
- /** @type {?} */
147
- NgxSkeletonLoaderComponent.prototype.loadingText;
148
- /** @type {?} */
149
- NgxSkeletonLoaderComponent.prototype.appearance;
150
- /** @type {?} */
151
- NgxSkeletonLoaderComponent.prototype.animation;
152
- /** @type {?} */
153
- NgxSkeletonLoaderComponent.prototype.ariaLabel;
154
- /** @type {?} */
155
- NgxSkeletonLoaderComponent.prototype.theme;
156
- /** @type {?} */
157
- NgxSkeletonLoaderComponent.prototype.items;
158
- }
159
-
160
- /**
161
- * @fileoverview added by tsickle
162
- * Generated from: lib/ngx-skeleton-loader.module.ts
163
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
164
- */
165
- class NgxSkeletonLoaderModule {
166
- /**
167
- * @param {?=} parentModule
168
- */
169
- constructor(parentModule) {
170
- if (parentModule) {
171
- throw new Error(`\`NgxSkeletonLoaderModule\` is already loaded and it might cause issues. To avoid that, import the module only once in your app.`);
172
- }
173
- }
174
- /**
175
- * @param {?=} config
176
- * @return {?}
177
- */
178
- static forRoot(config) {
179
- return {
180
- ngModule: NgxSkeletonLoaderModule,
181
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
182
- };
183
- }
184
- }
185
- NgxSkeletonLoaderModule.decorators = [
186
- { type: NgModule, args: [{
187
- declarations: [NgxSkeletonLoaderComponent],
188
- imports: [CommonModule],
189
- exports: [NgxSkeletonLoaderComponent],
190
- },] }
191
- ];
192
- /** @nocollapse */
193
- NgxSkeletonLoaderModule.ctorParameters = () => [
194
- { type: NgxSkeletonLoaderModule, decorators: [{ type: Optional }, { type: SkipSelf }] }
195
- ];
196
-
197
- /**
198
- * @fileoverview added by tsickle
199
- * Generated from: public-api.ts
200
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
201
- */
202
-
203
- /**
204
- * @fileoverview added by tsickle
205
- * Generated from: ngx-skeleton-loader.ts
206
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
207
- */
208
-
209
- export { NGX_SKELETON_LOADER_CONFIG, NgxSkeletonLoaderComponent, NgxSkeletonLoaderModule };
210
- //# sourceMappingURL=ngx-skeleton-loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-skeleton-loader.js","sources":["../../../projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader-config.types.ts","../../../projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.component.ts","../../../projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.module.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport type NgxSkeletonLoaderConfigTheme = {\n // This is required since ngStyle is using `any` as well\n // More details in https://angular.io/api/common/NgStyle\n // tslint:disable-next-line: no-any\n [k: string]: any;\n} | null;\n\nexport interface NgxSkeletonLoaderConfig {\n appearance: 'circle' | 'line' | '';\n animation: 'progress' | 'progress-dark' | 'pulse' | 'false' | false;\n theme: NgxSkeletonLoaderConfigTheme;\n loadingText: string;\n count: number;\n ariaLabel: string;\n}\n\nexport const NGX_SKELETON_LOADER_CONFIG = new InjectionToken<NgxSkeletonLoaderConfig>('ngx-skeleton-loader.config');\n","import {\n Component,\n OnInit,\n Input,\n isDevMode,\n OnDestroy,\n AfterViewInit,\n ChangeDetectionStrategy,\n OnChanges,\n SimpleChanges,\n Optional,\n Inject,\n} from '@angular/core';\nimport { start, end } from 'perf-marks/marks';\nimport {\n NgxSkeletonLoaderConfig,\n NgxSkeletonLoaderConfigTheme,\n NGX_SKELETON_LOADER_CONFIG,\n} from './ngx-skeleton-loader-config.types';\n\n@Component({\n selector: 'ngx-skeleton-loader',\n templateUrl: './ngx-skeleton-loader.html',\n styleUrls: ['./ngx-skeleton-loader.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgxSkeletonLoaderComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {\n // tslint:disable-next-line: variable-name\n static ngAcceptInputType_count: number | string;\n // tslint:disable-next-line: variable-name\n static ngAcceptInputType_animation: boolean | string;\n\n @Input()\n count: NgxSkeletonLoaderConfig['count'];\n\n @Input()\n loadingText: NgxSkeletonLoaderConfig['loadingText'];\n\n @Input()\n appearance: NgxSkeletonLoaderConfig['appearance'];\n\n @Input()\n animation: NgxSkeletonLoaderConfig['animation'];\n\n @Input()\n ariaLabel: NgxSkeletonLoaderConfig['ariaLabel'];\n\n @Input()\n theme: NgxSkeletonLoaderConfigTheme;\n\n // tslint:disable-next-line: no-any\n items: Array<any>;\n\n constructor(@Inject(NGX_SKELETON_LOADER_CONFIG) @Optional() config?: NgxSkeletonLoaderConfig) {\n const {\n appearance = 'line',\n animation = 'progress',\n theme = null,\n loadingText = 'Loading...',\n count = 1,\n ariaLabel = 'loading',\n } = config || {};\n\n this.appearance = appearance;\n this.animation = animation;\n this.theme = theme;\n this.loadingText = loadingText;\n this.count = count;\n this.items = [];\n this.ariaLabel = ariaLabel;\n }\n\n ngOnInit() {\n start('NgxSkeletonLoader:Rendered');\n start('NgxSkeletonLoader:Loaded');\n\n this.validateInputValues();\n }\n\n private validateInputValues() {\n // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)\n if (!/^\\d+$/.test(`${this.count}`)) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(\n `\\`NgxSkeletonLoaderComponent\\` need to receive 'count' a numeric value. Forcing default to \"1\".`,\n );\n }\n this.count = 1;\n }\n this.items.length = this.count;\n\n const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];\n if (allowedAnimations.indexOf(String(this.animation)) === -1) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(\n `\\`NgxSkeletonLoaderComponent\\` need to receive 'animation' as: ${allowedAnimations.join(\n ', ',\n )}. Forcing default to \"progress\".`,\n );\n }\n this.animation = 'progress';\n }\n\n if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {\n // Shows error message only in Development\n if (isDevMode()) {\n console.error(\n `\\`NgxSkeletonLoaderComponent\\` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\".`,\n );\n }\n this.appearance = '';\n }\n }\n\n ngOnChanges(changes: SimpleChanges) {\n // Avoiding multiple calls for the same input in case there's no changes in the fields\n // Checking if the fields that require validation are available and if they were changed\n // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.\n if (\n ['count', 'animation', 'appearance'].find(\n key =>\n changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue),\n )\n ) {\n return;\n }\n\n this.validateInputValues();\n }\n\n ngAfterViewInit() {\n end('NgxSkeletonLoader:Rendered');\n }\n\n ngOnDestroy() {\n end('NgxSkeletonLoader:Loaded');\n }\n}\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { NgxSkeletonLoaderComponent } from './ngx-skeleton-loader.component';\nimport { NgxSkeletonLoaderConfig, NGX_SKELETON_LOADER_CONFIG } from './ngx-skeleton-loader-config.types';\n\n@NgModule({\n declarations: [NgxSkeletonLoaderComponent],\n imports: [CommonModule],\n exports: [NgxSkeletonLoaderComponent],\n})\nexport class NgxSkeletonLoaderModule {\n constructor(@Optional() @SkipSelf() parentModule?: NgxSkeletonLoaderModule) {\n if (parentModule) {\n throw new Error(\n `\\`NgxSkeletonLoaderModule\\` is already loaded and it might cause issues. To avoid that, import the module only once in your app.`,\n );\n }\n }\n\n static forRoot(config?: Partial<NgxSkeletonLoaderConfig>): ModuleWithProviders<NgxSkeletonLoaderModule> {\n return {\n ngModule: NgxSkeletonLoaderModule,\n providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;sCAgBC;;;IANC,6CAAmC;;IACnC,4CAAoE;;IACpE,wCAAoC;;IACpC,8CAAoB;;IACpB,wCAAc;;IACd,4CAAkB;;;MAGP,0BAA0B,GAAG,IAAI,cAAc,CAA0B,4BAA4B;;;;;;;MCQrG,0BAA0B;;;;IA2BrC,YAA4D,MAAgC;cACpF,EACJ,UAAU,GAAG,MAAM,EACnB,SAAS,GAAG,UAAU,EACtB,KAAK,GAAG,IAAI,EACZ,WAAW,GAAG,YAAY,EAC1B,KAAK,GAAG,CAAC,EACT,SAAS,GAAG,SAAS,GACtB,GAAG,MAAM,IAAI,EAAE;QAEhB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,C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AI,QAAQ;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"NgxSkeletonLoaderComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"ngx-skeleton-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":24,"character":19},"member":"OnPush"},"template":"<span\n *ngFor=\"let item of items\"\n class=\"loader\"\n [attr.aria-label]=\"ariaLabel\"\n aria-busy=\"true\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [attr.aria-valuetext]=\"loadingText\"\n role=\"progressbar\"\n tabindex=\"0\"\n [ngClass]=\"{\n circle: appearance === 'circle',\n progress: animation === 'progress',\n 'progress-dark': animation === 'progress-dark',\n pulse: animation === 'pulse'\n }\"\n [ngStyle]=\"theme\"\n>\n</span>\n","styles":[".loader{background:#eff1f6 no-repeat;border-radius:4px;box-sizing:border-box;display:inline-block;height:20px;margin-bottom:10px;overflow:hidden;position:relative;width:100%;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{border-radius:50%;height:40px;margin:5px;width:40px}.loader.progress,.loader.progress-dark{transform:translateZ(0)}.loader.progress-dark:after,.loader.progress-dark:before,.loader.progress:after,.loader.progress:before{box-sizing:border-box}.loader.progress-dark:before,.loader.progress:before{-webkit-animation:progress 2s ease-in-out infinite;animation:progress 2s ease-in-out infinite;background-size:200px 100%;content:\"\";height:100%;left:0;position:absolute;top:0;width:200px;z-index:1}.loader.progress:before{background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}.loader.progress-dark:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;-webkit-animation-delay:.5s;animation:pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}"]}]}],"members":{"count":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":32,"character":3}}]}],"loadingText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"appearance":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":38,"character":3}}]}],"animation":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":41,"character":3}}]}],"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":44,"character":3}}]}],"theme":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":53,"character":15},"arguments":[{"__symbolic":"reference","name":"NGX_SKELETON_LOADER_CONFIG"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":53,"character":51}}]],"parameters":[{"__symbolic":"reference","name":"NgxSkeletonLoaderConfig"}]}],"ngOnInit":[{"__symbolic":"method"}],"validateInputValues":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"NgxSkeletonLoaderModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"exports":[{"__symbolic":"reference","name":"NgxSkeletonLoaderComponent"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":12,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"SkipSelf","line":12,"character":27}}]],"parameters":[{"__symbolic":"reference","name":"NgxSkeletonLoaderModule"}]}]},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"NgxSkeletonLoaderModule"},"providers":[{"provide":{"__symbolic":"reference","name":"NGX_SKELETON_LOADER_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}}]}}}},"NgxSkeletonLoaderConfigTheme":{"__symbolic":"interface"},"NgxSkeletonLoaderConfig":{"__symbolic":"interface"},"NGX_SKELETON_LOADER_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":18,"character":46},"arguments":["ngx-skeleton-loader.config"]}},"origins":{"NgxSkeletonLoaderComponent":"./lib/ngx-skeleton-loader.component","NgxSkeletonLoaderModule":"./lib/ngx-skeleton-loader.module","NgxSkeletonLoaderConfigTheme":"./lib/ngx-skeleton-loader-config.types","NgxSkeletonLoaderConfig":"./lib/ngx-skeleton-loader-config.types","NGX_SKELETON_LOADER_CONFIG":"./lib/ngx-skeleton-loader-config.types"},"importAs":"ngx-skeleton-loader"}