ngx-skeleton-loader 4.0.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,212 +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
- /** @type {?} */
28
- NgxSkeletonLoaderConfig.prototype.ariaLabel;
29
- }
30
- /** @type {?} */
31
- var NGX_SKELETON_LOADER_CONFIG = new core.InjectionToken('ngx-skeleton-loader.config');
32
-
33
- /**
34
- * @fileoverview added by tsickle
35
- * Generated from: lib/ngx-skeleton-loader.component.ts
36
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
37
- */
38
- var NgxSkeletonLoaderComponent = /** @class */ (function () {
39
- /**
40
- * @param {?=} config
41
- */
42
- function NgxSkeletonLoaderComponent(config) {
43
- 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, _g = _a.ariaLabel, ariaLabel = _g === void 0 ? 'loading' : _g;
44
- this.appearance = appearance;
45
- this.animation = animation;
46
- this.theme = theme;
47
- this.loadingText = loadingText;
48
- this.count = count;
49
- this.items = [];
50
- this.ariaLabel = ariaLabel;
51
- }
52
- /**
53
- * @return {?}
54
- */
55
- NgxSkeletonLoaderComponent.prototype.ngOnInit = function () {
56
- marks.start('NgxSkeletonLoader:Rendered');
57
- marks.start('NgxSkeletonLoader:Loaded');
58
- this.validateInputValues();
59
- };
60
- /**
61
- * @private
62
- * @return {?}
63
- */
64
- NgxSkeletonLoaderComponent.prototype.validateInputValues = function () {
65
- // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)
66
- if (!/^\d+$/.test("" + this.count)) {
67
- // Shows error message only in Development
68
- if (core.isDevMode()) {
69
- console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\".");
70
- }
71
- this.count = 1;
72
- }
73
- this.items.length = this.count;
74
- /** @type {?} */
75
- var allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
76
- if (allowedAnimations.indexOf(String(this.animation)) === -1) {
77
- // Shows error message only in Development
78
- if (core.isDevMode()) {
79
- console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: " + allowedAnimations.join(', ') + ". Forcing default to \"progress\".");
80
- }
81
- this.animation = 'progress';
82
- }
83
- if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {
84
- // Shows error message only in Development
85
- if (core.isDevMode()) {
86
- console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or empty string. Forcing default to \"''\".");
87
- }
88
- this.appearance = '';
89
- }
90
- };
91
- /**
92
- * @param {?} changes
93
- * @return {?}
94
- */
95
- NgxSkeletonLoaderComponent.prototype.ngOnChanges = function (changes) {
96
- // Avoiding multiple calls for the same input in case there's no changes in the fields
97
- // Checking if the fields that require validation are available and if they were changed
98
- // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.
99
- if (['count', 'animation', 'appearance'].find(( /**
100
- * @param {?} key
101
- * @return {?}
102
- */function (/**
103
- * @param {?} key
104
- * @return {?}
105
- */ key) { return changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue); }))) {
106
- return;
107
- }
108
- this.validateInputValues();
109
- };
110
- /**
111
- * @return {?}
112
- */
113
- NgxSkeletonLoaderComponent.prototype.ngAfterViewInit = function () {
114
- marks.end('NgxSkeletonLoader:Rendered');
115
- };
116
- /**
117
- * @return {?}
118
- */
119
- NgxSkeletonLoaderComponent.prototype.ngOnDestroy = function () {
120
- marks.end('NgxSkeletonLoader:Loaded');
121
- };
122
- return NgxSkeletonLoaderComponent;
123
- }());
124
- NgxSkeletonLoaderComponent.decorators = [
125
- { type: core.Component, args: [{
126
- selector: 'ngx-skeleton-loader',
127
- 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",
128
- changeDetection: core.ChangeDetectionStrategy.OnPush,
129
- 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}}"]
130
- }] }
131
- ];
132
- /** @nocollapse */
133
- NgxSkeletonLoaderComponent.ctorParameters = function () { return [
134
- { type: undefined, decorators: [{ type: core.Inject, args: [NGX_SKELETON_LOADER_CONFIG,] }, { type: core.Optional }] }
135
- ]; };
136
- NgxSkeletonLoaderComponent.propDecorators = {
137
- count: [{ type: core.Input }],
138
- loadingText: [{ type: core.Input }],
139
- appearance: [{ type: core.Input }],
140
- animation: [{ type: core.Input }],
141
- ariaLabel: [{ type: core.Input }],
142
- theme: [{ type: core.Input }]
143
- };
144
- if (false) {
145
- /** @type {?} */
146
- NgxSkeletonLoaderComponent.ngAcceptInputType_count;
147
- /** @type {?} */
148
- NgxSkeletonLoaderComponent.ngAcceptInputType_animation;
149
- /** @type {?} */
150
- NgxSkeletonLoaderComponent.prototype.count;
151
- /** @type {?} */
152
- NgxSkeletonLoaderComponent.prototype.loadingText;
153
- /** @type {?} */
154
- NgxSkeletonLoaderComponent.prototype.appearance;
155
- /** @type {?} */
156
- NgxSkeletonLoaderComponent.prototype.animation;
157
- /** @type {?} */
158
- NgxSkeletonLoaderComponent.prototype.ariaLabel;
159
- /** @type {?} */
160
- NgxSkeletonLoaderComponent.prototype.theme;
161
- /** @type {?} */
162
- NgxSkeletonLoaderComponent.prototype.items;
163
- }
164
-
165
- /**
166
- * @fileoverview added by tsickle
167
- * Generated from: lib/ngx-skeleton-loader.module.ts
168
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
169
- */
170
- var NgxSkeletonLoaderModule = /** @class */ (function () {
171
- function NgxSkeletonLoaderModule() {
172
- }
173
- /**
174
- * @param {?=} config
175
- * @return {?}
176
- */
177
- NgxSkeletonLoaderModule.forRoot = function (config) {
178
- return {
179
- ngModule: NgxSkeletonLoaderModule,
180
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
181
- };
182
- };
183
- return NgxSkeletonLoaderModule;
184
- }());
185
- NgxSkeletonLoaderModule.decorators = [
186
- { type: core.NgModule, args: [{
187
- declarations: [NgxSkeletonLoaderComponent],
188
- imports: [common.CommonModule],
189
- exports: [NgxSkeletonLoaderComponent],
190
- },] }
191
- ];
192
-
193
- /**
194
- * @fileoverview added by tsickle
195
- * Generated from: public-api.ts
196
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
197
- */
198
-
199
- /**
200
- * @fileoverview added by tsickle
201
- * Generated from: ngx-skeleton-loader.ts
202
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
203
- */
204
-
205
- exports.NGX_SKELETON_LOADER_CONFIG = NGX_SKELETON_LOADER_CONFIG;
206
- exports.NgxSkeletonLoaderComponent = NgxSkeletonLoaderComponent;
207
- exports.NgxSkeletonLoaderModule = NgxSkeletonLoaderModule;
208
-
209
- Object.defineProperty(exports, '__esModule', { value: true });
210
-
211
- })));
212
- //# 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 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 } 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":";;;;;;;;;;;;;;0CAgBC;;;QANC,6CAAmC;;QACnC,4CAAoE;;QACpE,wCAAoC;;QACpC,8CAAoB;;QACpB,wCAAc;;QACd,4CAAkB;;;QAGP,0BAA0B,GAAG,IAAIA,mBAAc,CAA0B,4BAA4B;;;;;;;;;;;QCmCh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DACkD;;QAElD,+CACgD;;QAEhD,+CACgD;;QAEhD,2CACoC;;QAGpC,2CAAkB;;;;;;;;;QCxCpB;;;;;;QACS,+BAAO,GAAd,UAAe,MAAyC;YACtD,OAAO;gBACL,QAAQ,EAAE,uBAAuB;gBACjC,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;aACvE,CAAC;SACH;;;;gBAXFC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,0BAA0B,CAAC;oBAC1C,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,0BAA0B,CAAC;iBACtC;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(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"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self)["ngx-skeleton-loader"]={},e.ng.core,e.marks,e.ng.common)}(this,(function(e,r,o,n){"use strict";var a=new r.InjectionToken("ngx-skeleton-loader.config"),t=function(){function e(e){var r=e||{},o=r.appearance,n=void 0===o?"line":o,a=r.animation,t=void 0===a?"progress":a,i=r.theme,s=void 0===i?null:i,d=r.loadingText,l=void 0===d?"Loading...":d,p=r.count,g=void 0===p?1:p,c=r.ariaLabel,u=void 0===c?"loading":c;this.appearance=n,this.animation=t,this.theme=s,this.loadingText=l,this.count=g,this.items=[],this.ariaLabel=u}return e.prototype.ngOnInit=function(){o.start("NgxSkeletonLoader:Rendered"),o.start("NgxSkeletonLoader:Loaded"),this.validateInputValues()},e.prototype.validateInputValues=function(){/^\d+$/.test(""+this.count)||(r.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))&&(r.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))&&(r.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(r){return e[r]&&(e[r].isFirstChange()||e[r].previousValue===e[r].currentValue)}))||this.validateInputValues()},e.prototype.ngAfterViewInit=function(){o.end("NgxSkeletonLoader:Rendered")},e.prototype.ngOnDestroy=function(){o.end("NgxSkeletonLoader:Loaded")},e}();t.decorators=[{type:r.Component,args:[{selector:"ngx-skeleton-loader",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',changeDetection:r.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}}']}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.Inject,args:[a]},{type:r.Optional}]}]},t.propDecorators={count:[{type:r.Input}],loadingText:[{type:r.Input}],appearance:[{type:r.Input}],animation:[{type:r.Input}],ariaLabel:[{type:r.Input}],theme:[{type:r.Input}]};var i=function(){function e(){}return e.forRoot=function(r){return{ngModule:e,providers:[{provide:a,useValue:r}]}},e}();i.decorators=[{type:r.NgModule,args:[{declarations:[t],imports:[n.CommonModule],exports:[t]}]}],e.NGX_SKELETON_LOADER_CONFIG=a,e.NgxSkeletonLoaderComponent=t,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","_g","ariaLabel","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":"icAkBaA,EAA6B,IAAIC,EAAAA,eAAwC,2CCmCpF,SAAAC,EAA4DC,GACpD,IAAAC,EAAAD,GAAA,GACJE,EAAAD,EAAAE,WAAAA,OAAA,IAAAD,EAAA,OAAAA,EACAE,EAAAH,EAAAI,UAAAA,OAAA,IAAAD,EAAA,WAAAA,EACAE,EAAAL,EAAAM,MAAAA,OAAA,IAAAD,EAAA,KAAAA,EACAE,EAAAP,EAAAQ,YAAAA,OAAA,IAAAD,EAAA,aAAAA,EACAE,EAAAT,EAAAU,MAAAA,OAAA,IAAAD,EAAA,EAAAA,EACAE,EAAAX,EAAAY,UAAAA,OAAA,IAAAD,EAAA,UAAAA,EAGFE,KAAKX,WAAaA,EAClBW,KAAKT,UAAYA,EACjBS,KAAKP,MAAQA,EACbO,KAAKL,YAAcA,EACnBK,KAAKH,MAAQA,EACbG,KAAKC,MAAQ,GACbD,KAAKD,UAAYA,SAGnBd,EAAAiB,UAAAC,SAAA,WACEC,EAAAA,MAAM,8BACNA,EAAAA,MAAM,4BAENJ,KAAKK,uBAGCpB,EAAAiB,UAAAG,oBAAA,WAED,QAAQC,KAAK,GAAGN,KAAKH,SAEpBU,EAAAA,aACFC,QAAQC,MACN,mGAGJT,KAAKH,MAAQ,GAEfG,KAAKC,MAAMS,OAASV,KAAKH,UAEnBc,EAAoB,CAAC,WAAY,gBAAiB,QAAS,UACN,IAAvDA,EAAkBC,QAAQC,OAAOb,KAAKT,cAEpCgB,EAAAA,aACFC,QAAQC,MACN,gEAAkEE,EAAkBG,KAClF,MACD,oCAGLd,KAAKT,UAAY,aAG8C,IAA7D,CAAC,SAAU,OAAQ,IAAIqB,QAAQC,OAAOb,KAAKX,eAEzCkB,EAAAA,aACFC,QAAQC,MACN,4HAGJT,KAAKX,WAAa,KAItBJ,EAAAiB,UAAAa,YAAA,SAAYC,GAKR,CAAC,QAAS,YAAa,cAAcC,MAAI,SACvCC,GACE,OAAAF,EAAQE,KAASF,EAAQE,GAAKC,iBAAmBH,EAAQE,GAAKE,gBAAkBJ,EAAQE,GAAKG,kBAMnGrB,KAAKK,uBAGPpB,EAAAiB,UAAAoB,gBAAA,WACEC,EAAAA,IAAI,+BAGNtC,EAAAiB,UAAAsB,YAAA,WACED,EAAAA,IAAI,sDArHPE,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,sBACVC,SAAA,+cAEAC,gBAAiBC,EAAAA,wBAAwBC,6vDA6B5BC,EAAAA,OAAMN,KAAA,CAAC3C,IAA0B,CAAAkD,KAAGC,EAAAA,6CArBhDC,EAAAA,2BAGAA,EAAAA,0BAGAA,EAAAA,yBAGAA,EAAAA,yBAGAA,EAAAA,qBAGAA,EAAAA,0BCpCH,SAAAC,YACSA,EAAAC,QAAP,SAAenD,GACb,MAAO,CACLoD,SAAUF,EACVG,UAAW,CAAC,CAAEC,QAASzD,EAA4B0D,SAAUvD,+BATlEwD,EAAAA,SAAQhB,KAAA,CAAC,CACRiB,aAAc,CAAC1D,GACf2D,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC7D","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 } 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,27 +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
- /** @type {?} */
23
- NgxSkeletonLoaderConfig.prototype.ariaLabel;
24
- }
25
- /** @type {?} */
26
- export const NGX_SKELETON_LOADER_CONFIG = new InjectionToken('ngx-skeleton-loader.config');
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYX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jb25zdCBOR1hfU0tFTEVUT05fTE9BREVSX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxOZ3hTa2VsZXRvbkxvYWRlckNvbmZpZz4oJ25neC1za2VsZXRvbi1sb2FkZXIuY29uZmlnJyk7XG4iXX0=
@@ -1,132 +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, ariaLabel = 'loading', } = 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
- this.ariaLabel = ariaLabel;
22
- }
23
- /**
24
- * @return {?}
25
- */
26
- ngOnInit() {
27
- start('NgxSkeletonLoader:Rendered');
28
- start('NgxSkeletonLoader:Loaded');
29
- this.validateInputValues();
30
- }
31
- /**
32
- * @private
33
- * @return {?}
34
- */
35
- validateInputValues() {
36
- // Checking if it's receiving a numeric value (string having ONLY numbers or if it's a number)
37
- if (!/^\d+$/.test(`${this.count}`)) {
38
- // Shows error message only in Development
39
- if (isDevMode()) {
40
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'count' a numeric value. Forcing default to "1".`);
41
- }
42
- this.count = 1;
43
- }
44
- this.items.length = this.count;
45
- /** @type {?} */
46
- const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
47
- if (allowedAnimations.indexOf(String(this.animation)) === -1) {
48
- // Shows error message only in Development
49
- if (isDevMode()) {
50
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${allowedAnimations.join(', ')}. Forcing default to "progress".`);
51
- }
52
- this.animation = 'progress';
53
- }
54
- if (['circle', 'line', ''].indexOf(String(this.appearance)) === -1) {
55
- // Shows error message only in Development
56
- if (isDevMode()) {
57
- console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'appearance' as: circle or line or empty string. Forcing default to "''".`);
58
- }
59
- this.appearance = '';
60
- }
61
- }
62
- /**
63
- * @param {?} changes
64
- * @return {?}
65
- */
66
- ngOnChanges(changes) {
67
- // Avoiding multiple calls for the same input in case there's no changes in the fields
68
- // Checking if the fields that require validation are available and if they were changed
69
- // In case were not changed, we stop the function. Otherwise, `validateInputValues` will be called.
70
- if (['count', 'animation', 'appearance'].find((/**
71
- * @param {?} key
72
- * @return {?}
73
- */
74
- key => changes[key] && (changes[key].isFirstChange() || changes[key].previousValue === changes[key].currentValue)))) {
75
- return;
76
- }
77
- this.validateInputValues();
78
- }
79
- /**
80
- * @return {?}
81
- */
82
- ngAfterViewInit() {
83
- end('NgxSkeletonLoader:Rendered');
84
- }
85
- /**
86
- * @return {?}
87
- */
88
- ngOnDestroy() {
89
- end('NgxSkeletonLoader:Loaded');
90
- }
91
- }
92
- NgxSkeletonLoaderComponent.decorators = [
93
- { type: Component, args: [{
94
- selector: 'ngx-skeleton-loader',
95
- 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",
96
- changeDetection: ChangeDetectionStrategy.OnPush,
97
- 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}}"]
98
- }] }
99
- ];
100
- /** @nocollapse */
101
- NgxSkeletonLoaderComponent.ctorParameters = () => [
102
- { type: undefined, decorators: [{ type: Inject, args: [NGX_SKELETON_LOADER_CONFIG,] }, { type: Optional }] }
103
- ];
104
- NgxSkeletonLoaderComponent.propDecorators = {
105
- count: [{ type: Input }],
106
- loadingText: [{ type: Input }],
107
- appearance: [{ type: Input }],
108
- animation: [{ type: Input }],
109
- ariaLabel: [{ type: Input }],
110
- theme: [{ type: Input }]
111
- };
112
- if (false) {
113
- /** @type {?} */
114
- NgxSkeletonLoaderComponent.ngAcceptInputType_count;
115
- /** @type {?} */
116
- NgxSkeletonLoaderComponent.ngAcceptInputType_animation;
117
- /** @type {?} */
118
- NgxSkeletonLoaderComponent.prototype.count;
119
- /** @type {?} */
120
- NgxSkeletonLoaderComponent.prototype.loadingText;
121
- /** @type {?} */
122
- NgxSkeletonLoaderComponent.prototype.appearance;
123
- /** @type {?} */
124
- NgxSkeletonLoaderComponent.prototype.animation;
125
- /** @type {?} */
126
- NgxSkeletonLoaderComponent.prototype.ariaLabel;
127
- /** @type {?} */
128
- NgxSkeletonLoaderComponent.prototype.theme;
129
- /** @type {?} */
130
- NgxSkeletonLoaderComponent.prototype.items;
131
- }
132
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFDTCxTQUFTLEVBR1QsdUJBQXVCLEVBR3ZCLFFBQVEsRUFDUixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM5QyxPQUFPLEVBR0wsMEJBQTBCLEdBQzNCLE1BQU0sb0NBQW9DLENBQUM7QUFRNUMsTUFBTSxPQUFPLDBCQUEwQjs7Ozt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NoYW5nZXM6IFNpbXBsZUNoYW5nZXMpIHtcbiAgICAvLyBBdm9pZGluZyBtdWx0aXBsZSBjYWxscyBmb3IgdGhlIHNhbWUgaW5wdXQgaW4gY2FzZSB0aGVyZSdzIG5vIGNoYW5nZXMgaW4gdGhlIGZpZWxkc1xuICAgIC8vIENoZWNraW5nIGlmIHRoZSBmaWVsZHMgdGhhdCByZXF1aXJlIHZhbGlkYXRpb24gYXJlIGF2YWlsYWJsZSBhbmQgaWYgdGhleSB3ZXJlIGNoYW5nZWRcbiAgICAvLyBJbiBjYXNlIHdlcmUgbm90IGNoYW5nZWQsIHdlIHN0b3AgdGhlIGZ1bmN0aW9uLiBPdGhlcndpc2UsIGB2YWxpZGF0ZUlucHV0VmFsdWVzYCB3aWxsIGJlIGNhbGxlZC5cbiAgICBpZiAoXG4gICAgICBbJ2NvdW50JywgJ2FuaW1hdGlvbicsICdhcHBlYXJhbmNlJ10uZmluZChcbiAgICAgICAga2V5ID0+XG4gICAgICAgICAgY2hhbmdlc1trZXldICYmIChjaGFuZ2VzW2tleV0uaXNGaXJzdENoYW5nZSgpIHx8IGNoYW5nZXNba2V5XS5wcmV2aW91c1ZhbHVlID09PSBjaGFuZ2VzW2tleV0uY3VycmVudFZhbHVlKSxcbiAgICAgIClcbiAgICApIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLnZhbGlkYXRlSW5wdXRWYWx1ZXMoKTtcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOlJlbmRlcmVkJyk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOkxvYWRlZCcpO1xuICB9XG59XG4iXX0=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDN0UsT0FBTyxFQUEyQiwwQkFBMEIsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBT3pHLE1BQU0sT0FBTyx1QkFBdUI7Ozs7O0lBQ2xDLE1BQU0sQ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8Tmd4U2tlbGV0b25Mb2FkZXJDb25maWc+KTogTW9kdWxlV2l0aFByb3ZpZGVyczxOZ3hTa2VsZXRvbkxvYWRlck1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTmd4U2tlbGV0b25Mb2FkZXJNb2R1bGUsXG4gICAgICBwcm92aWRlcnM6IFt7IHByb3ZpZGU6IE5HWF9TS0VMRVRPTl9MT0FERVJfQ09ORklHLCB1c2VWYWx1ZTogY29uZmlnIH1dLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
@@ -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==