ngx-skeleton-loader 2.10.0 → 5.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,206 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('perf-marks/marks'), require('@angular/common')) :
3
- typeof define === 'function' && define.amd ? define('ngx-skeleton-loader', ['exports', '@angular/core', 'perf-marks/marks', '@angular/common'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ngx-skeleton-loader'] = {}, global.ng.core, global.marks, global.ng.common));
5
- }(this, (function (exports, core, marks, common) { 'use strict';
6
-
7
- /**
8
- * @fileoverview added by tsickle
9
- * Generated from: lib/ngx-skeleton-loader-config.types.ts
10
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11
- */
12
- /**
13
- * @record
14
- */
15
- function NgxSkeletonLoaderConfig() { }
16
- if (false) {
17
- /** @type {?} */
18
- NgxSkeletonLoaderConfig.prototype.appearance;
19
- /** @type {?} */
20
- NgxSkeletonLoaderConfig.prototype.animation;
21
- /** @type {?} */
22
- NgxSkeletonLoaderConfig.prototype.theme;
23
- /** @type {?} */
24
- NgxSkeletonLoaderConfig.prototype.loadingText;
25
- /** @type {?} */
26
- NgxSkeletonLoaderConfig.prototype.count;
27
- }
28
- /** @type {?} */
29
- var NGX_SKELETON_LOADER_CONFIG = new core.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
- var NgxSkeletonLoaderComponent = /** @class */ (function () {
37
- /**
38
- * @param {?=} config
39
- */
40
- function NgxSkeletonLoaderComponent(config) {
41
- var _a = config || {}, _b = _a.appearance, appearance = _b === void 0 ? 'line' : _b, _c = _a.animation, animation = _c === void 0 ? 'progress' : _c, _d = _a.theme, theme = _d === void 0 ? null : _d, _e = _a.loadingText, loadingText = _e === void 0 ? 'Loading...' : _e, _f = _a.count, count = _f === void 0 ? 1 : _f;
42
- this.appearance = appearance;
43
- this.animation = animation;
44
- this.theme = theme;
45
- this.loadingText = loadingText;
46
- this.count = count;
47
- this.items = [];
48
- }
49
- /**
50
- * @return {?}
51
- */
52
- NgxSkeletonLoaderComponent.prototype.ngOnInit = function () {
53
- marks.start('NgxSkeletonLoader:Rendered');
54
- marks.start('NgxSkeletonLoader:Loaded');
55
- this.validateInputValues();
56
- };
57
- /**
58
- * @private
59
- * @return {?}
60
- */
61
- NgxSkeletonLoaderComponent.prototype.validateInputValues = function () {
62
- // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)
63
- if (!/^\d+$/.test("" + this.count)) {
64
- // Shows error message only in Development
65
- if (core.isDevMode()) {
66
- console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\".");
67
- }
68
- this.count = 1;
69
- }
70
- this.items.length = this.count;
71
- /** @type {?} */
72
- var allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
73
- if (allowedAnimations.indexOf(String(this.animation)) === -1) {
74
- // Shows error message only in Development
75
- if (core.isDevMode()) {
76
- console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: " + allowedAnimations.join(', ') + ". Forcing default to \"progress\".");
77
- }
78
- this.animation = 'progress';
79
- }
80
- if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {
81
- // Shows error message only in Development
82
- if (core.isDevMode()) {
83
- console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\".");
84
- }
85
- this.appearance = '';
86
- }
87
- };
88
- /**
89
- * @param {?} changes
90
- * @return {?}
91
- */
92
- NgxSkeletonLoaderComponent.prototype.ngOnChanges = function (changes) {
93
- // Avoiding multiple calls for the same input in case there's no changes in the fields
94
- // Checking if the fields that require validation are available and if they were changed
95
- // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.
96
- if (['count', 'animation', 'appearance'].find(( /**
97
- * @param {?} key
98
- * @return {?}
99
- */function (/**
100
- * @param {?} key
101
- * @return {?}
102
- */ key) { return changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue); }))) {
103
- return;
104
- }
105
- this.validateInputValues();
106
- };
107
- /**
108
- * @return {?}
109
- */
110
- NgxSkeletonLoaderComponent.prototype.ngAfterViewInit = function () {
111
- marks.end('NgxSkeletonLoader:Rendered');
112
- };
113
- /**
114
- * @return {?}
115
- */
116
- NgxSkeletonLoaderComponent.prototype.ngOnDestroy = function () {
117
- marks.end('NgxSkeletonLoader:Loaded');
118
- };
119
- return NgxSkeletonLoaderComponent;
120
- }());
121
- NgxSkeletonLoaderComponent.decorators = [
122
- { type: core.Component, args: [{
123
- selector: 'ngx-skeleton-loader',
124
- template: "<span\n *ngFor=\"let item of items\"\n class=\"loader\"\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",
125
- changeDetection: core.ChangeDetectionStrategy.OnPush,
126
- 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}}"]
127
- }] }
128
- ];
129
- /** @nocollapse */
130
- NgxSkeletonLoaderComponent.ctorParameters = function () { return [
131
- { type: undefined, decorators: [{ type: core.Inject, args: [NGX_SKELETON_LOADER_CONFIG,] }, { type: core.Optional }] }
132
- ]; };
133
- NgxSkeletonLoaderComponent.propDecorators = {
134
- count: [{ type: core.Input }],
135
- loadingText: [{ type: core.Input }],
136
- appearance: [{ type: core.Input }],
137
- animation: [{ type: core.Input }],
138
- theme: [{ type: core.Input }]
139
- };
140
- if (false) {
141
- /** @type {?} */
142
- NgxSkeletonLoaderComponent.ngAcceptInputType_count;
143
- /** @type {?} */
144
- NgxSkeletonLoaderComponent.ngAcceptInputType_animation;
145
- /** @type {?} */
146
- NgxSkeletonLoaderComponent.prototype.count;
147
- /** @type {?} */
148
- NgxSkeletonLoaderComponent.prototype.loadingText;
149
- /** @type {?} */
150
- NgxSkeletonLoaderComponent.prototype.appearance;
151
- /** @type {?} */
152
- NgxSkeletonLoaderComponent.prototype.animation;
153
- /** @type {?} */
154
- NgxSkeletonLoaderComponent.prototype.theme;
155
- /** @type {?} */
156
- NgxSkeletonLoaderComponent.prototype.items;
157
- }
158
-
159
- /**
160
- * @fileoverview added by tsickle
161
- * Generated from: lib/ngx-skeleton-loader.module.ts
162
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
163
- */
164
- var NgxSkeletonLoaderModule = /** @class */ (function () {
165
- function NgxSkeletonLoaderModule() {
166
- }
167
- /**
168
- * @param {?=} config
169
- * @return {?}
170
- */
171
- NgxSkeletonLoaderModule.forRoot = function (config) {
172
- return {
173
- ngModule: NgxSkeletonLoaderModule,
174
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
175
- };
176
- };
177
- return NgxSkeletonLoaderModule;
178
- }());
179
- NgxSkeletonLoaderModule.decorators = [
180
- { type: core.NgModule, args: [{
181
- declarations: [NgxSkeletonLoaderComponent],
182
- imports: [common.CommonModule],
183
- exports: [NgxSkeletonLoaderComponent],
184
- },] }
185
- ];
186
-
187
- /**
188
- * @fileoverview added by tsickle
189
- * Generated from: public-api.ts
190
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
191
- */
192
-
193
- /**
194
- * @fileoverview added by tsickle
195
- * Generated from: ngx-skeleton-loader.ts
196
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
197
- */
198
-
199
- exports.NGX_SKELETON_LOADER_CONFIG = NGX_SKELETON_LOADER_CONFIG;
200
- exports.NgxSkeletonLoaderComponent = NgxSkeletonLoaderComponent;
201
- exports.NgxSkeletonLoaderModule = NgxSkeletonLoaderModule;
202
-
203
- Object.defineProperty(exports, '__esModule', { value: true });
204
-
205
- })));
206
- //# sourceMappingURL=ngx-skeleton-loader.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ngx-skeleton-loader.umd.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}\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 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 { appearance = 'line', animation = 'progress', theme = null, loadingText = 'Loading...', count = 1 } = config || {};\n this.appearance = appearance;\n this.animation = animation;\n this.theme = theme;\n this.loadingText = loadingText;\n this.count = count;\n this.items = [];\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 } 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 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":["InjectionToken","start","isDevMode","end","Component","ChangeDetectionStrategy","Inject","Optional","Input","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;;;0CAeC;;;QALC,6CAAmC;;QACnC,4CAAoE;;QACpE,wCAAoC;;QACpC,8CAAoB;;QACpB,wCAAc;;;QAGH,0BAA0B,GAAG,IAAIA,mBAAc,CAA0B,4BAA4B;;;;;;;;;;;QCiChH,oCAA4D,MAAgC;YACpF,IAAA,iBAAmH,EAAjH,kBAAmB,EAAnB,wCAAmB,EAAE,iBAAsB,EAAtB,2CAAsB,EAAE,aAAY,EAAZ,iCAAY,EAAE,mBAA0B,EAA1B,+CAA0B,EAAE,aAAS,EAAT,8BAA0B;YACzH,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;YAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAC/B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-1,2 +0,0 @@
1
- !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("perf-marks/marks"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-skeleton-loader",["exports","@angular/core","perf-marks/marks","@angular/common"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-skeleton-loader"]={},e.ng.core,e.marks,e.ng.common)}(this,(function(e,o,r,n){"use strict";var t=new o.InjectionToken("ngx-skeleton-loader.config"),a=function(){function e(e){var o=e||{},r=o.appearance,n=void 0===r?"line":r,t=o.animation,a=void 0===t?"progress":t,i=o.theme,s=void 0===i?null:i,d=o.loadingText,p=void 0===d?"Loading...":d,l=o.count,g=void 0===l?1:l;this.appearance=n,this.animation=a,this.theme=s,this.loadingText=p,this.count=g,this.items=[]}return e.prototype.ngOnInit=function(){r.start("NgxSkeletonLoader:Rendered"),r.start("NgxSkeletonLoader:Loaded"),this.validateInputValues()},e.prototype.validateInputValues=function(){/^\d+$/.test(""+this.count)||(o.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),this.items.length=this.count;var e=["progress","progress-dark","pulse","false"];-1===e.indexOf(String(this.animation))&&(o.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: "+e.join(", ")+'. Forcing default to "progress".'),this.animation="progress"),-1===["circle","line",""].indexOf(String(this.appearance))&&(o.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\"."),this.appearance="")},e.prototype.ngOnChanges=function(e){["count","animation","appearance"].find((function(o){return e[o]&&(e[o].isFirstChange()||e[o].previousValue===e[o].currentValue)}))||this.validateInputValues()},e.prototype.ngAfterViewInit=function(){r.end("NgxSkeletonLoader:Rendered")},e.prototype.ngOnDestroy=function(){r.end("NgxSkeletonLoader:Loaded")},e}();a.decorators=[{type:o.Component,args:[{selector:"ngx-skeleton-loader",template:'<span\n *ngFor="let item of items"\n class="loader"\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',changeDetection:o.ChangeDetectionStrategy.OnPush,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}}']}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[t]},{type:o.Optional}]}]},a.propDecorators={count:[{type:o.Input}],loadingText:[{type:o.Input}],appearance:[{type:o.Input}],animation:[{type:o.Input}],theme:[{type:o.Input}]};var i=function(){function e(){}return e.forRoot=function(o){return{ngModule:e,providers:[{provide:t,useValue:o}]}},e}();i.decorators=[{type:o.NgModule,args:[{declarations:[a],imports:[n.CommonModule],exports:[a]}]}],e.NGX_SKELETON_LOADER_CONFIG=t,e.NgxSkeletonLoaderComponent=a,e.NgxSkeletonLoaderModule=i,Object.defineProperty(e,"__esModule",{value:!0})}));
2
- //# sourceMappingURL=ngx-skeleton-loader.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"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"],"names":["NGX_SKELETON_LOADER_CONFIG","InjectionToken","NgxSkeletonLoaderComponent","config","_a","_b","appearance","_c","animation","_d","theme","_e","loadingText","_f","count","this","items","prototype","ngOnInit","start","validateInputValues","test","isDevMode","console","error","length","allowedAnimations","indexOf","String","join","ngOnChanges","changes","find","key","isFirstChange","previousValue","currentValue","ngAfterViewInit","end","ngOnDestroy","Component","args","selector","template","changeDetection","ChangeDetectionStrategy","OnPush","Inject","type","Optional","Input","NgxSkeletonLoaderModule","forRoot","ngModule","providers","provide","useValue","NgModule","declarations","imports","CommonModule","exports"],"mappings":"icAiBaA,EAA6B,IAAIC,EAAAA,eAAwC,2CCiCpF,SAAAC,EAA4DC,GACpD,IAAAC,EAAAD,GAAA,GAAEE,EAAAD,EAAAE,WAAAA,OAAA,IAAAD,EAAA,OAAAA,EAAqBE,EAAAH,EAAAI,UAAAA,OAAA,IAAAD,EAAA,WAAAA,EAAwBE,EAAAL,EAAAM,MAA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AAgD,KAAGC,EAAAA,6CAlBhDC,EAAAA,2BAGAA,EAAAA,0BAGAA,EAAAA,yBAGAA,EAAAA,qBAGAA,EAAAA,0BCjCH,SAAAC,YACSA,EAAAC,QAAP,SAAejD,GACb,MAAO,CACLkD,SAAUF,EACVG,UAAW,CAAC,CAAEC,QAASvD,EAA4BwD,SAAUrD,+BATlEsD,EAAAA,SAAQhB,KAAA,CAAC,CACRiB,aAAc,CAACxD,GACfyD,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC3D","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}\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 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 { appearance = 'line', animation = 'progress', theme = null, loadingText = 'Loading...', count = 1 } = config || {};\n this.appearance = appearance;\n this.animation = animation;\n this.theme = theme;\n this.loadingText = loadingText;\n this.count = count;\n this.items = [];\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 } 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 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"]}
@@ -1,25 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/ngx-skeleton-loader-config.types.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- import { InjectionToken } from '@angular/core';
7
- /**
8
- * @record
9
- */
10
- export function NgxSkeletonLoaderConfig() { }
11
- if (false) {
12
- /** @type {?} */
13
- NgxSkeletonLoaderConfig.prototype.appearance;
14
- /** @type {?} */
15
- NgxSkeletonLoaderConfig.prototype.animation;
16
- /** @type {?} */
17
- NgxSkeletonLoaderConfig.prototype.theme;
18
- /** @type {?} */
19
- NgxSkeletonLoaderConfig.prototype.loadingText;
20
- /** @type {?} */
21
- NgxSkeletonLoaderConfig.prototype.count;
22
- }
23
- /** @type {?} */
24
- export const NGX_SKELETON_LOADER_CONFIG = new InjectionToken('ngx-skeleton-loader.config');
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBUy9DLDZDQU1DOzs7SUFMQyw2Q0FBbUM7O0lBQ25DLDRDQUFvRTs7SUFDcEUsd0NBQW9DOztJQUNwQyw4Q0FBb0I7O0lBQ3BCLHdDQUFjOzs7QUFHaEIsTUFBTSxPQUFPLDBCQUEwQixHQUFHLElBQUksY0FBYyxDQUEwQiw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGlvblRva2VuIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmV4cG9ydCB0eXBlIE5neFNrZWxldG9uTG9hZGVyQ29uZmlnVGhlbWUgPSB7XG4gIC8vIFRoaXMgaXMgcmVxdWlyZWQgc2luY2UgbmdTdHlsZSBpcyB1c2luZyBgYW55YCBhcyB3ZWxsXG4gIC8vIE1vcmUgZGV0YWlscyBpbiBodHRwczovL2FuZ3VsYXIuaW8vYXBpL2NvbW1vbi9OZ1N0eWxlXG4gIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogbm8tYW55XG4gIFtrOiBzdHJpbmddOiBhbnk7XG59IHwgbnVsbDtcblxuZXhwb3J0IGludGVyZmFjZSBOZ3hTa2VsZXRvbkxvYWRlckNvbmZpZyB7XG4gIGFwcGVhcmFuY2U6ICdjaXJjbGUnIHwgJ2xpbmUnIHwgJyc7XG4gIGFuaW1hdGlvbjogJ3Byb2dyZXNzJyB8ICdwcm9ncmVzcy1kYXJrJyB8ICdwdWxzZScgfCAnZmFsc2UnIHwgZmFsc2U7XG4gIHRoZW1lOiBOZ3hTa2VsZXRvbkxvYWRlckNvbmZpZ1RoZW1lO1xuICBsb2FkaW5nVGV4dDogc3RyaW5nO1xuICBjb3VudDogbnVtYmVyO1xufVxuXG5leHBvcnQgY29uc3QgTkdYX1NLRUxFVE9OX0xPQURFUl9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48Tmd4U2tlbGV0b25Mb2FkZXJDb25maWc+KCduZ3gtc2tlbGV0b24tbG9hZGVyLmNvbmZpZycpO1xuIl19
@@ -1,128 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/ngx-skeleton-loader.component.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- import { Component, Input, isDevMode, ChangeDetectionStrategy, Optional, Inject, } from '@angular/core';
7
- import { start, end } from 'perf-marks/marks';
8
- import { NGX_SKELETON_LOADER_CONFIG, } from './ngx-skeleton-loader-config.types';
9
- export class NgxSkeletonLoaderComponent {
10
- /**
11
- * @param {?=} config
12
- */
13
- constructor(config) {
14
- const { appearance = 'line', animation = 'progress', theme = null, loadingText = 'Loading...', count = 1 } = config || {};
15
- this.appearance = appearance;
16
- this.animation = animation;
17
- this.theme = theme;
18
- this.loadingText = loadingText;
19
- this.count = count;
20
- this.items = [];
21
- }
22
- /**
23
- * @return {?}
24
- */
25
- ngOnInit() {
26
- start('NgxSkeletonLoader:Rendered');
27
- start('NgxSkeletonLoader:Loaded');
28
- this.validateInputValues();
29
- }
30
- /**
31
- * @private
32
- * @return {?}
33
- */
34
- validateInputValues() {
35
- // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)
36
- if (!/^\d+$/.test(`${this.count}`)) {
37
- // Shows error message only in Development
38
- if (isDevMode()) {
39
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'count' a numeric value. Forcing default to "1".`);
40
- }
41
- this.count = 1;
42
- }
43
- this.items.length = this.count;
44
- /** @type {?} */
45
- const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
46
- if (allowedAnimations.indexOf(String(this.animation)) === -1) {
47
- // Shows error message only in Development
48
- if (isDevMode()) {
49
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${allowedAnimations.join(', ')}. Forcing default to "progress".`);
50
- }
51
- this.animation = 'progress';
52
- }
53
- if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {
54
- // Shows error message only in Development
55
- if (isDevMode()) {
56
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'appearance' as: circle or line or empty string. Forcing default to "''".`);
57
- }
58
- this.appearance = '';
59
- }
60
- }
61
- /**
62
- * @param {?} changes
63
- * @return {?}
64
- */
65
- ngOnChanges(changes) {
66
- // Avoiding multiple calls for the same input in case there's no changes in the fields
67
- // Checking if the fields that require validation are available and if they were changed
68
- // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.
69
- if (['count', 'animation', 'appearance'].find((/**
70
- * @param {?} key
71
- * @return {?}
72
- */
73
- key => changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue)))) {
74
- return;
75
- }
76
- this.validateInputValues();
77
- }
78
- /**
79
- * @return {?}
80
- */
81
- ngAfterViewInit() {
82
- end('NgxSkeletonLoader:Rendered');
83
- }
84
- /**
85
- * @return {?}
86
- */
87
- ngOnDestroy() {
88
- end('NgxSkeletonLoader:Loaded');
89
- }
90
- }
91
- NgxSkeletonLoaderComponent.decorators = [
92
- { type: Component, args: [{
93
- selector: 'ngx-skeleton-loader',
94
- template: "<span\n *ngFor=\"let item of items\"\n class=\"loader\"\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",
95
- changeDetection: ChangeDetectionStrategy.OnPush,
96
- 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}}"]
97
- }] }
98
- ];
99
- /** @nocollapse */
100
- NgxSkeletonLoaderComponent.ctorParameters = () => [
101
- { type: undefined, decorators: [{ type: Inject, args: [NGX_SKELETON_LOADER_CONFIG,] }, { type: Optional }] }
102
- ];
103
- NgxSkeletonLoaderComponent.propDecorators = {
104
- count: [{ type: Input }],
105
- loadingText: [{ type: Input }],
106
- appearance: [{ type: Input }],
107
- animation: [{ type: Input }],
108
- theme: [{ type: Input }]
109
- };
110
- if (false) {
111
- /** @type {?} */
112
- NgxSkeletonLoaderComponent.ngAcceptInputType_count;
113
- /** @type {?} */
114
- NgxSkeletonLoaderComponent.ngAcceptInputType_animation;
115
- /** @type {?} */
116
- NgxSkeletonLoaderComponent.prototype.count;
117
- /** @type {?} */
118
- NgxSkeletonLoaderComponent.prototype.loadingText;
119
- /** @type {?} */
120
- NgxSkeletonLoaderComponent.prototype.appearance;
121
- /** @type {?} */
122
- NgxSkeletonLoaderComponent.prototype.animation;
123
- /** @type {?} */
124
- NgxSkeletonLoaderComponent.prototype.theme;
125
- /** @type {?} */
126
- NgxSkeletonLoaderComponent.prototype.items;
127
- }
128
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFDTCxTQUFTLEVBR1QsdUJBQXVCLEVBR3ZCLFFBQVEsRUFDUixNQUFNLEdBQ1AsTU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yBDaGVja2luZyBpZiB0aGUgZmllbGRzIHRoYXQgcmVxdWlyZSB2YWxpZGF0aW9uIGFyZSBhdmFpbGFibGUgYW5kIGlmIHRoZXkgd2VyZSBjaGFuZ2VkXG4gICAgLy8gSW4gY2FzZSB3ZXJlIG5vdCBjaGFuZ2VkLCB3ZSBzdG9wIHRoZSBmdW5jdGlvbi4gT3RoZXJ3aXNlLCBgdmFsaWRhdGVJbnB1dFZhbHVlc2Agd2lsbCBiZSBjYWxsZWQuXG4gICAgaWYgKFxuICAgICAgWydjb3VudCcsICdhbmltYXRpb24nLCAnYXBwZWFyYW5jZSddLmZpbmQoXG4gICAgICAgIGtleSA9PlxuICAgICAgICAgIGNoYW5nZXNba2V5XSAmJiAoY2hhbmdlc1trZXldLmlzRmlyc3RDaGFuZ2UoKSB8fCBjaGFuZ2VzW2tleV0ucHJldmlvdXNWYWx1ZSA9PT0gY2hhbmdlc1trZXldLmN1cnJlbnRWYWx1ZSksXG4gICAgICApXG4gICAgKSB7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy52YWxpZGF0ZUlucHV0VmFsdWVzKCk7XG4gIH1cblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgZW5kKCdOZ3hTa2VsZXRvbkxvYWRlcjpSZW5kZXJlZCcpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgZW5kKCdOZ3hTa2VsZXRvbkxvYWRlcjpMb2FkZWQnKTtcbiAgfVxufVxuIl19
@@ -1,29 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: lib/ngx-skeleton-loader.module.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- import { NgModule } from '@angular/core';
7
- import { CommonModule } from '@angular/common';
8
- import { NgxSkeletonLoaderComponent } from './ngx-skeleton-loader.component';
9
- import { NGX_SKELETON_LOADER_CONFIG } from './ngx-skeleton-loader-config.types';
10
- export class NgxSkeletonLoaderModule {
11
- /**
12
- * @param {?=} config
13
- * @return {?}
14
- */
15
- static forRoot(config) {
16
- return {
17
- ngModule: NgxSkeletonLoaderModule,
18
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
19
- };
20
- }
21
- }
22
- NgxSkeletonLoaderModule.decorators = [
23
- { type: NgModule, args: [{
24
- declarations: [NgxSkeletonLoaderComponent],
25
- imports: [CommonModule],
26
- exports: [NgxSkeletonLoaderComponent],
27
- },] }
28
- ];
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDN0UsT0FBTyxFQUEyQiwwQkFBMEIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBT3pHLE1BQU0sT0FBTyx1QkFBdUI7Ozs7O0lBQ2xDLE1BQU0sQ0FBQyxPQUFPLENBQUMsTUFBeUM7UUFDdEQsT0FBTztZQUNMLFFBQVEsRUFBRSx1QkFBdUI7WUFDakMsU0FBUyxFQUFFLENBQUMsRUFBRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsUUFBUSxFQUFFLE1BQU0sRU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XJNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IE5HWF9TS0VMRVRPTl9MT0FERVJfQ09ORklHLCB1c2VWYWx1ZTogY29uZmlnIH1dLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -1,10 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: ngx-skeleton-loader.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- /**
7
- * Generated bundle index. Do not edit.
8
- */
9
- export { NgxSkeletonLoaderComponent, NgxSkeletonLoaderModule, NGX_SKELETON_LOADER_CONFIG } from './public-api';
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvd2lsbG1lbmRlc25ldG8vUHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9wcm9qZWN0cy9uZ3gtc2tlbGV0b24tbG9hZGVyL3NyYy8iLCJzb3VyY2VzIjpbIm5neC1za2VsZXRvbi1sb2FkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSxnR0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
@@ -1,12 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * Generated from: public-api.ts
4
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5
- */
6
- /*
7
- * Public API Surface of ngx-skeleton-loader
8
- */
9
- export { NgxSkeletonLoaderComponent } from './lib/ngx-skeleton-loader.component';
10
- export { NgxSkeletonLoaderModule } from './lib/ngx-skeleton-loader.module';
11
- export { NGX_SKELETON_LOADER_CONFIG } from './lib/ngx-skeleton-loader-config.types';
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvd2lsbG1lbmRlc25ldG8vUHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9wcm9qZWN0cy9uZ3gtc2tlbGV0b24tbG9hZGVyL3NyYy8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFJQSwyQ0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCx3Q0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCwyQ0FBYyx3Q0FBd0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LXNrZWxldG9uLWxvYWRlclxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1za2VsZXRvbi1sb2FkZXIuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1za2VsZXRvbi1sb2FkZXIubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL25neC1za2VsZXRvbi1sb2FkZXItY29uZmlnLnR5cGVzJztcbiJdfQ==