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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ngx-skeleton-loader",
3
3
  "description": "Make beautiful, animated loading skeletons that automatically adapt to your Angular apps",
4
- "version": "3.0.0",
4
+ "version": "6.0.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=8.0.0",
7
7
  "@angular/core": ">=8.0.0"
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "perf-marks": "^1.13.4",
25
- "tslib": "^1.10.0"
25
+ "tslib": "^2.0.0"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
@@ -32,12 +32,24 @@
32
32
  "url": "https://github.com/willmendesneto/ngx-skeleton-loader/issues"
33
33
  },
34
34
  "homepage": "https://github.com/willmendesneto/ngx-skeleton-loader#readme",
35
- "main": "bundles/ngx-skeleton-loader.umd.js",
36
- "module": "fesm2015/ngx-skeleton-loader.js",
37
- "es2015": "fesm2015/ngx-skeleton-loader.js",
38
- "esm2015": "esm2015/ngx-skeleton-loader.js",
39
- "fesm2015": "fesm2015/ngx-skeleton-loader.js",
35
+ "module": "fesm2015/ngx-skeleton-loader.mjs",
36
+ "es2020": "fesm2020/ngx-skeleton-loader.mjs",
37
+ "esm2020": "esm2020/ngx-skeleton-loader.mjs",
38
+ "fesm2020": "fesm2020/ngx-skeleton-loader.mjs",
39
+ "fesm2015": "fesm2015/ngx-skeleton-loader.mjs",
40
40
  "typings": "ngx-skeleton-loader.d.ts",
41
- "metadata": "ngx-skeleton-loader.metadata.json",
41
+ "exports": {
42
+ "./package.json": {
43
+ "default": "./package.json"
44
+ },
45
+ ".": {
46
+ "types": "./ngx-skeleton-loader.d.ts",
47
+ "esm2020": "./esm2020/ngx-skeleton-loader.mjs",
48
+ "es2020": "./fesm2020/ngx-skeleton-loader.mjs",
49
+ "es2015": "./fesm2015/ngx-skeleton-loader.mjs",
50
+ "node": "./fesm2015/ngx-skeleton-loader.mjs",
51
+ "default": "./fesm2020/ngx-skeleton-loader.mjs"
52
+ }
53
+ },
42
54
  "sideEffects": false
43
55
  }
@@ -1,222 +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
- /**
172
- * @param {?=} parentModule
173
- */
174
- function NgxSkeletonLoaderModule(parentModule) {
175
- if (parentModule) {
176
- throw new Error("`NgxSkeletonLoaderModule` is already loaded and it might cause issues. To avoid that, import the module only once in your app.");
177
- }
178
- }
179
- /**
180
- * @param {?=} config
181
- * @return {?}
182
- */
183
- NgxSkeletonLoaderModule.forRoot = function (config) {
184
- return {
185
- ngModule: NgxSkeletonLoaderModule,
186
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
187
- };
188
- };
189
- return NgxSkeletonLoaderModule;
190
- }());
191
- NgxSkeletonLoaderModule.decorators = [
192
- { type: core.NgModule, args: [{
193
- declarations: [NgxSkeletonLoaderComponent],
194
- imports: [common.CommonModule],
195
- exports: [NgxSkeletonLoaderComponent],
196
- },] }
197
- ];
198
- /** @nocollapse */
199
- NgxSkeletonLoaderModule.ctorParameters = function () { return [
200
- { type: NgxSkeletonLoaderModule, decorators: [{ type: core.Optional }, { type: core.SkipSelf }] }
201
- ]; };
202
-
203
- /**
204
- * @fileoverview added by tsickle
205
- * Generated from: public-api.ts
206
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
207
- */
208
-
209
- /**
210
- * @fileoverview added by tsickle
211
- * Generated from: ngx-skeleton-loader.ts
212
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
213
- */
214
-
215
- exports.NGX_SKELETON_LOADER_CONFIG = NGX_SKELETON_LOADER_CONFIG;
216
- exports.NgxSkeletonLoaderComponent = NgxSkeletonLoaderComponent;
217
- exports.NgxSkeletonLoaderModule = NgxSkeletonLoaderModule;
218
-
219
- Object.defineProperty(exports, '__esModule', { value: true });
220
-
221
- })));
222
- //# 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, 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":["InjectionToken","start","isDevMode","end","Component","ChangeDetectionStrategy","Inject","Optional","Input","NgModule","CommonModule","SkipSelf"],"mappings":";;;;;;;;;;;;;;0CAgBC;;;QANC,6CAAmC;;QACnC,4CAAoE;;QACpE,wCAAoC;;QACpC,8CAAoB;;QACpB,wCAAc;;QACd,4CAAkB;;;QAGP,0BAA0B,GAAG,IAAIA,mBAAc,CAA0B,4BAA4B;;;;;;;;;;;QCmChH,oCAA4D,MAAgC;YACpF,IAAA,iBAOU,EANd,kBAAmB,EAAnB,wCAAmB,EACnB,iBAAsB,EAAtB,2CAAsB,EACtB,aAAY,EAAZ,iCAAY,EACZ,mBAA0B,EAA1B,+CAA0B,EAC1B,aAAS,EAAT,8BAAS,EACT,iBAAqB,EAArB,0CACc;YAEhB,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,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;;;;QAED,6CAAQ,GAAR;YACEC,WAAK,CAAC,4BAA4B,CAAC,CAAC;YACpCA,WAAK,CAAC,0BAA0B,CAAC,CAAC;YAElC,IAAI,CAAC,mBAAmB,EAAE,CAAC;SAC5B;;;;;QAEO,wDAAmB,GAAnB;;YAEN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAG,IAAI,CAAC,KAAO,CAAC,EAAE;;gBAElC,I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,oDAAe,GAAf;YACEC,SAAG,CAAC,4BAA4B,CAAC,CAAC;SACnC;;;;QAED,gDAAW,GAAX;YACEA,SAAG,CAAC,0BAA0B,CAAC,CAAC;SACjC;;;;gBAtHFC,cAAS,SAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,oeAAyC;oBAEzC,eAAe,EAAEC,4BAAuB,CAAC,MAAM;;iBAChD;;;;gDA4BcC,WAAM,SAAC,0BAA0B,cAAGC,aAAQ;;;wBArBxDC,UAAK;8BAGLA,UAAK;6BAGLA,UAAK;4BAGLA,UAAK;4BAGLA,UAAK;wBAGLA,UAAK;;;;QAnBN,mDAAgD;;QAEhD,uDAAqD;;QAErD,2CACwC;;QAExC,iDACoD;;QAEpD,gDACkD;;QAElD,+CACgD;;QAEhD,+CACgD;;QAEhD,2CACoC;;QAGpC,2CAAkB;;;;;;;;;;;;QCvClB,iCAAoC,YAAsC;YACxE,IAAI,YAAY,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,gIAAkI,CACnI,CAAC;aACH;SACF;;;;;QAEM,+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;;;;gBAnBFC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,0BAA0B,CAAC;oBAC1C,OAAO,EAAE,CAACC,mBAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,0BAA0B,CAAC;iBACtC;;;;gBAEoD,uBAAuB,uBAA7DH,aAAQ,YAAII,aAAQ;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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,u=void 0===p?1:p,c=r.ariaLabel,g=void 0===c?"loading":c;this.appearance=n,this.animation=t,this.theme=s,this.loadingText=l,this.count=u,this.items=[],this.ariaLabel=g}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(e){if(e)throw new Error("`NgxSkeletonLoaderModule` is already loaded and it might cause issues. To avoid that, import the module only once in your app.")}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]}]}],i.ctorParameters=function(){return[{type:i,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]},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","parentModule","Error","forRoot","ngModule","providers","provide","useValue","NgModule","declarations","imports","CommonModule","exports","decorators","SkipSelf"],"mappings":"icAkBaA,EAA6B,IAAIC,EAAAA,eAAwC,2CCmCpF,SAAAC,EAA4DC,GACpD,IAAAC,EAAAD,GAAA,GACJE,EAAAD,EAAAE,WAAAA,OAAA,IAAAD,EAAA,OAAAA,E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AAAA,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,0BCnCD,SAAAC,EAAoCC,GAClC,GAAIA,EACF,MAAM,IAAIC,MACR,yIAKCF,EAAAG,QAAP,SAAerD,GACb,MAAO,CACLsD,SAAUJ,EACVK,UAAW,CAAC,CAAEC,QAAS3D,EAA4B4D,SAAUzD,+BAjBlE0D,EAAAA,SAAQlB,KAAA,CAAC,CACRmB,aAAc,CAAC5D,GACf6D,QAAS,CAACC,EAAAA,cACVC,QAAS,CAAC/D,gDAGyCmD,EAAuBa,WAAA,CAAA,CAAAhB,KAA7DC,EAAAA,UAAQ,CAAAD,KAAIiB,EAAAA","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"]}
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci1jb25maWcudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7O0FBUy9DLDZDQU9DOzs7SUFOQyw2Q0FBbUM7O0lBQ25DLDRDQUFvRTs7SUFDcEUsd0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XX0=
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULEtBQUssRUFDTCxTQUFTLEVBR1QsdUJBQXVCLEVBR3ZCLFFBQVEsRUFDUixNQUFNLEdBQ1AsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM5QyxPQUFPLEVBR0wsMEJBQTBCLEdBQzNCLE1BQU0sb0NBQW9DLENBQUM7QUFRNUMsTUFBTSxPQUFPLDBCQUEwQjs7OztJQTJCckMsWUFBNEQsTUFBZ0M7Y0FDcEYsRUFDSixVQUFVLEdBQUcsTUFBTSxFQUNuQixTQUFTLEdBQUcsVUFBVSxFQUN0QixLQUFLLEdBQUcsSUFBSSxFQUNaLFdBQVcsR0FBRyxZQUFZLEVB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IGZpZWxkc1xuICAgIC8vIENoZWNraW5nIGlmIHRoZSBmaWVsZHMgdGhhdCByZXF1aXJlIHZhbGlkYXRpb24gYXJlIGF2YWlsYWJsZSBhbmQgaWYgdGhleSB3ZXJlIGNoYW5nZWRcbiAgICAvLyBJbiBjYXNlIHdlcmUgbm90IGNoYW5nZWQsIHdlIHN0b3AgdGhlIGZ1bmN0aW9uLiBPdGhlcndpc2UsIGB2YWxpZGF0ZUlucHV0VmFsdWVzYCB3aWxsIGJlIGNhbGxlZC5cbiAgICBpZiAoXG4gICAgICBbJ2NvdW50JywgJ2FuaW1hdGlvbicsICdhcHBlYXJhbmNlJ10uZmluZChcbiAgICAgICAga2V5ID0+XG4gICAgICAgICAgY2hhbmdlc1trZXldICYmIChjaGFuZ2VzW2tleV0uaXNGaXJzdENoYW5nZSgpIHx8IGNoYW5nZXNba2V5XS5wcmV2aW91c1ZhbHVlID09PSBjaGFuZ2VzW2tleV0uY3VycmVudFZhbHVlKSxcbiAgICAgIClcbiAgICApIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG5cbiAgICB0aGlzLnZhbGlkYXRlSW5wdXRWYWx1ZXMoKTtcbiAgfVxuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOlJlbmRlcmVkJyk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBlbmQoJ05neFNrZWxldG9uTG9hZGVyOkxvYWRlZCcpO1xuICB9XG59XG4iXX0=
@@ -1,41 +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, Optional, SkipSelf } 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 {?=} parentModule
13
- */
14
- constructor(parentModule) {
15
- if (parentModule) {
16
- throw new Error(`\`NgxSkeletonLoaderModule\` is already loaded and it might cause issues. To avoid that, import the module only once in your app.`);
17
- }
18
- }
19
- /**
20
- * @param {?=} config
21
- * @return {?}
22
- */
23
- static forRoot(config) {
24
- return {
25
- ngModule: NgxSkeletonLoaderModule,
26
- providers: [{ provide: NGX_SKELETON_LOADER_CONFIG, useValue: config }],
27
- };
28
- }
29
- }
30
- NgxSkeletonLoaderModule.decorators = [
31
- { type: NgModule, args: [{
32
- declarations: [NgxSkeletonLoaderComponent],
33
- imports: [CommonModule],
34
- exports: [NgxSkeletonLoaderComponent],
35
- },] }
36
- ];
37
- /** @nocollapse */
38
- NgxSkeletonLoaderModule.ctorParameters = () => [
39
- { type: NgxSkeletonLoaderModule, decorators: [{ type: Optional }, { type: SkipSelf }] }
40
- ];
41
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL3dpbGxtZW5kZXNuZXRvL1Byb2plY3RzL25neC1za2VsZXRvbi1sb2FkZXIvcHJvamVjdHMvbmd4LXNrZWxldG9uLWxvYWRlci9zcmMvIiwic291cmNlcyI6WyJsaWIvbmd4LXNrZWxldG9uLWxvYWRlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2xGLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxpQ0FBaUMsQ0F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view 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==