ngx-skeleton-loader 13.0.0 → 14.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/CHANGELOG.md ADDED
@@ -0,0 +1,751 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+
9
+ ## [Unreleased][]
10
+
11
+ ## [14.0.0][] - 2026-10-20
12
+
13
+ ### Changed
14
+
15
+ #### Breaking Change
16
+
17
+ - WAI-ARIA attributes (`role="progressbar"`, `aria-busy`, `aria-valuemin`, `aria-valuemax`, `aria-label` and `aria-valuetext`) are now applied once in the `<ngx-skeleton-loader>` element, instead of in every skeleton item, so screen readers announce a single progress bar per component. Skeleton items are hidden from assistive technologies via `aria-hidden="true"` and no longer have `tabindex="-1"`. Code or tests querying these attributes in `.skeleton-loader` items need to query the `<ngx-skeleton-loader>` element instead - https://github.com/willmendesneto/ngx-skeleton-loader/pull/297
18
+ - `<ngx-skeleton-loader>` is now rendered as a block element (`display: block`), wrapping its skeleton items. Multiple `<ngx-skeleton-loader>` elements placed side by side as inline elements (without a flex or grid container) are now rendered in separate lines - https://github.com/willmendesneto/ngx-skeleton-loader/pull/298
19
+
20
+ #### Other Changes
21
+
22
+ - Migrating CI from CircleCI to GitHub Actions, adding an SSR server check (`npm run test:ssr`) and Dependabot updates for GitHub Actions - https://github.com/willmendesneto/ngx-skeleton-loader/pull/303
23
+ - Removing `extendsFromRoot` flag from the styles applied to skeletons, since it's not a valid CSS property - https://github.com/willmendesneto/ngx-skeleton-loader/pull/276
24
+ - Linting demo app and e2e files via `npm run lint`, fixing existing lint errors - https://github.com/willmendesneto/ngx-skeleton-loader/pull/285
25
+ - Improving rendering performance by scoping CSS `will-change` to the animated parts only: `transform` on the `progress`/`progress-dark` shimmer and `opacity` on `pulse`/`pulse-dark`. Skeletons without animation, or rendered with `prefers-reduced-motion: reduce`, are no longer promoted to their own GPU layer. In the demo page (95 skeletons), composited layers dropped from 137 to 82 with animations and from 90 to 5 with reduced motion - https://github.com/willmendesneto/ngx-skeleton-loader/pull/277
26
+ - Replacing `transform: translate3d(0, 0, 0)` with `isolation: isolate` in `progress`/`progress-dark` skeletons, keeping the shimmer clipped by `border-radius` without an extra GPU layer - https://github.com/willmendesneto/ngx-skeleton-loader/pull/277
27
+ - Replacing deprecated `min-device-width` media query with `(hover: hover) and (pointer: fine)` to show the `wait` cursor and disable text selection only on devices with mouse/trackpad. Desktop and touch devices keep the same behavior, but it now also covers laptops with smaller screens and tablets with mouse/trackpad - https://github.com/willmendesneto/ngx-skeleton-loader/pull/280
28
+ - Removing unused and duplicated CSS rules (unused `:after` pseudo-element styles, duplicated `box-sizing`, and `prefers-reduced-motion` rules for `custom-content`/`pulse-dark` that had no effect), decreasing bundle size from 3.99KB to 3.96KB (gzip) - https://github.com/willmendesneto/ngx-skeleton-loader/pull/280
29
+ - Adding CSS containment (`contain: layout paint`) to skeletons. It isolates the skeleton layout and paint work from the rest of the page, so changes inside of a skeleton (e.g. animations or `custom-content`) don't trigger layout/paint work outside of it. There are no visual changes, since skeletons were already using `overflow: hidden` and `position: relative` - https://github.com/willmendesneto/ngx-skeleton-loader/pull/279
30
+ - Improving `progress` and `progress-dark` animations by making the shimmer cross the skeleton based on its own width, instead of the viewport width (`100vw`). Previously, small skeletons (e.g. a `40px` circle) displayed the shimmer for only a fraction of the animation duration, spending the rest of it animating an invisible (clipped) element. Now the shimmer is visible during the whole animation, starting right before the skeleton left edge and finishing right after its right edge, for any skeleton width. The animation is still composited (`transform` only) - https://github.com/willmendesneto/ngx-skeleton-loader/pull/278
31
+ - Using a single class binding for skeleton items, instead of one binding per appearance/animation class - https://github.com/willmendesneto/ngx-skeleton-loader/pull/290
32
+ - Removing redundant `standalone: true` and using `styleUrl` in `NgxSkeletonLoaderComponent` - https://github.com/willmendesneto/ngx-skeleton-loader/pull/288
33
+ - Removing unused dependencies (`@angular/animations`, `@angular/forms`, `@angular/platform-browser-dynamic`, `core-js`, `ts-node` and `zone.js`) and using zoneless change detection in the demo app - https://github.com/willmendesneto/ngx-skeleton-loader/pull/291
34
+ - Adding GPU layers count regression e2e tests - https://github.com/willmendesneto/ngx-skeleton-loader/pull/299
35
+ - Checking the package in an app using the minimum `peerDependencies` version (Angular 19) in CI - https://github.com/willmendesneto/ngx-skeleton-loader/pull/300
36
+
37
+ ### Added
38
+
39
+ - Adding `wave` animation, similar to `progress` but with an oblique shimmer - https://github.com/willmendesneto/ngx-skeleton-loader/pull/295
40
+ - Adding stagger effect via `--ngx-skeleton-loader-animation-stagger` CSS custom property (`0s` by default), delaying each item animation based on its index. Items also expose their index via `--ngx-skeleton-loader-index`, which can be used in custom animations - https://github.com/willmendesneto/ngx-skeleton-loader/pull/294
41
+ - Adding right-to-left (RTL) support for `progress` and `progress-dark` animations: the shimmer crosses the skeleton from right to left when rendered in a `dir="rtl"` context - https://github.com/willmendesneto/ngx-skeleton-loader/pull/293
42
+ - Adding `width`, `height` and `borderRadius` inputs as shortcuts for the most common `[theme]` styles, accepting the same values as `size` - https://github.com/willmendesneto/ngx-skeleton-loader/pull/296
43
+ - Adding types for `theme` values (strings or numbers) instead of `any`, raising TypeScript errors for invalid values such as objects or arrays - https://github.com/willmendesneto/ngx-skeleton-loader/pull/289
44
+
45
+ - Adding opt-in dark mode. Skeletons keep light colors by default, as in previous versions, and dark mode can be enabled via `colorScheme` input or config (`auto` follows the user's color scheme preference, `dark` forces dark colors) or via `--ngx-skeleton-loader-color-scheme` CSS custom property, using `light-dark()` for the default base and shimmer colors - https://github.com/willmendesneto/ngx-skeleton-loader/pull/283 and https://github.com/willmendesneto/ngx-skeleton-loader/pull/305
46
+ - Adding support for type-safe custom animations. Consumers can register their own animation names by extending `NgxSkeletonLoaderCustomAnimations` interface via TypeScript declaration merging, and use them via `animation` attribute or config. Invalid names raise TypeScript errors (in templates, when `strictTemplates` is enabled) - https://github.com/willmendesneto/ngx-skeleton-loader/pull/284
47
+ - Custom animations are rendered as CSS class with `animation-` prefix (e.g. `animation="my-wave"` renders `.skeleton-loader.animation-my-wave`), avoiding collisions with internal classes. Their styles must be added in a global stylesheet or via `::ng-deep`, since component styles are encapsulated. They are disabled automatically - including the ones applied to `::before`/`::after` - when user prefers reduced motion - https://github.com/willmendesneto/ngx-skeleton-loader/pull/284
48
+ - Adding docs about theming via CSS custom properties, color scheme (dark mode) and custom animations on `README.md` file, with examples in the demo page
49
+
50
+ ### Deprecated
51
+
52
+ - Deprecating `NgxSkeletonLoaderModule` and `NgxSkeletonLoaderModule.forRoot()` in favor of the standalone `NgxSkeletonLoaderComponent` and `provideNgxSkeletonLoader()`, which also work in `NgModule` based apps. They will be removed in a future major version - https://github.com/willmendesneto/ngx-skeleton-loader/pull/292
53
+
54
+ ### Fixed
55
+
56
+ - Fixing SSR demo server startup with Express 5, which no longer accepts `**` as a wildcard path, and declaring the hostnames allowed by `CommonEngine` (`localhost` by default, `NG_ALLOWED_HOSTS` environment variable for other environments) - https://github.com/willmendesneto/ngx-skeleton-loader/pull/302
57
+ - Fixing `custom-content` appearance rendering multiple DOM nodes in production when `count` is bigger than `1`. `count` is now forced to `1` in every environment, keeping the error message in development mode only - https://github.com/willmendesneto/ngx-skeleton-loader/pull/273
58
+ - Fixing `progress-dark` animation still running when user prefers reduced motion - https://github.com/willmendesneto/ngx-skeleton-loader/pull/274
59
+ - Fixing `size` for `square` appearance ignoring decimal values (e.g. `1.5` became `15`) and CSS measure units passed in `size` (e.g. `10rem` became `10px`). A unit passed in `size` now takes precedence over `measureUnit`, and invalid values don't add `width`/`height` styles - https://github.com/willmendesneto/ngx-skeleton-loader/pull/275
60
+ - Fixing CSS custom properties (e.g. `--ngx-skeleton-loader-base-color`) being ignored when set in an ancestor element, such as `:root`, `body` or a wrapper element. Now they are consumed with their default values as fallback, keeping the same names and the `[theme]` support - https://github.com/willmendesneto/ngx-skeleton-loader/pull/283
61
+
62
+ ## [13.0.0][] - 2026-06-05
63
+
64
+ ### Changed
65
+
66
+ - Merging rollback due to malformed code
67
+
68
+ ## [12.0.0][] - 2026-01-18
69
+
70
+ ### Changed
71
+
72
+ - Upgrading projecto to Angular v21
73
+
74
+ ## [11.3.0][] - 2025-08-27
75
+
76
+ ### Added
77
+
78
+ - Adding info about `measureUnit` usage on `README.md` file
79
+ - Adding support for different CSS measurement units via `measureUnit` input attribute
80
+
81
+ ### Fixed
82
+
83
+ - Removing unnecessary folders from package distribution
84
+
85
+ ### Changed
86
+
87
+ - Using CSS Vars for skeleton definition
88
+ - Moving bundlesize configuration into `.bundlesize.config.json` file
89
+
90
+ ### Fixed
91
+
92
+ - Fixing dynamic height/width via `[theme]`
93
+
94
+ ## [11.2.1][] - 2025-06-27
95
+
96
+ ### Changed
97
+
98
+ - Adding new appearance `square`
99
+ - Fixing `peerDependencies` install
100
+
101
+ ## [11.2.0][] - 2025-06-09
102
+
103
+ ### Added
104
+
105
+ - Adding new `pulse-dark` animation
106
+
107
+ ### Changed
108
+
109
+ - Upgrading Angular deps to v20
110
+ - Replacing `npm install` to `npm ci` on Circle CI pipeline
111
+
112
+ ## [11.1.0][] - 2025-05-19
113
+
114
+ ### Added
115
+ - Adding support for standalone `provideNgxSkeletonLoader()`
116
+
117
+ ### Changed
118
+ - Upgrade project to use eslint v9
119
+ - Updating docs to reflect standalone `provideNgxSkeletonLoader()` support
120
+
121
+ ## [11.0.0][] - 2025-04-09
122
+
123
+ ### Changed
124
+ - Upgrading project to use Node.js v22.14.0
125
+ - Upgrading project to Angular v19
126
+ - Removing [ngStyle] and [ngClass] in favor of `[style]` and `[class]`, respectively. These directives are expected to be removed in future Angular versions, since their behavior can be replicated using native bindings. This change also reduces the initial bundle size for applications that don’t use these directives.
127
+
128
+ ## [10.0.0][] - 2025-01-24
129
+
130
+ ### Removed
131
+ - Removing warnings in dev mode in favor of typed angular signals integration. It should not affect consumers in general, but it will be released as a major version, since this project follows the SEMVER standards
132
+
133
+ ### Changed
134
+
135
+ > Thanks to @lekhmanrus
136
+
137
+ - Upgrading `@angular/*` packages to v19 - https://github.com/willmendesneto/ngx-skeleton-loader/pull/179
138
+ - Implementing Angular Signals integration - https://github.com/willmendesneto/ngx-skeleton-loader/pull/179
139
+ - Making NGX-Skeleton-Loader Standalone Compliant - Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/183
140
+
141
+ ### Added
142
+ - Adding `PUBLISHING_HOTFIX.md` file describing all the steps to cover a hotfix in older version of NGX-Skeleton-Loader module
143
+
144
+ ## [9.0.0][] - 2024-01-13
145
+ ### Changed
146
+
147
+ - Upgrading `@angular/*` packages to v17
148
+ - Upgrading NodeJS to v20.10.0
149
+
150
+ ## [8.1.0][] - 2023-09-12
151
+
152
+ ### Fixed
153
+
154
+ - fixing issue with optional chaining not being supported on apps using Angular CLI <=v11;
155
+
156
+ ### Changed
157
+
158
+ - Changed input values validation in order to remove optional chaining. Instead, the code is now using object destructuring to get config theme value;
159
+
160
+ ## [8.0.2][] - 2023-09-11
161
+
162
+ ### Fixed
163
+
164
+ - Fixing `README.md` docs
165
+
166
+ ## [8.0.1][] - 2023-08-30
167
+
168
+ ### Fixed
169
+
170
+ - Fixing CSS reduce motion in MacOS;
171
+
172
+ ## [8.0.0][] - 2023-06-20
173
+
174
+ ### Changed
175
+
176
+ - Updating project to support Angular v16;
177
+ - Updating NodeJS version to v18;
178
+ - Updating peerDependencies to point to latest `@angular/*` packages;
179
+
180
+ ### Removed
181
+
182
+ - Removing `perf-marks` dependency library;
183
+
184
+ ## [7.0.0][] - 2023-02-04
185
+
186
+ ### Added
187
+
188
+ - Adding support for extending global theme added via `NgxSkeletonLoaderModule.forRoot({ theme: /* ...list of CSS atributes */} })`
189
+
190
+ By default when using `NgxSkeletonLoaderModule.forRoot({ theme: /* ...list of CSS atributes */} })` the application is using this value as source of truth, overriding any local theming passed to `<ngx-skeleton-loader>` component via `[theme]` input.
191
+
192
+ By using `NgxSkeletonLoaderModule.forRoot({ theme: { extendsFromRoot: true, /* ...list of CSS atributes */} })` in your application, you should also be aware that:
193
+
194
+ - By default, every `<ngx-skeleton-loader>` component will use `theme` coming from `NgxSkeletonLoaderModule.forRoot()` as the source of truth
195
+ - If there's any CSS attribute on the component locally which overrides the CSS spec, it combines both themes, but overriding global CSS attributes in favor of local ones.
196
+
197
+ ```html
198
+ <!--
199
+ // ... E.G: App is using this configuration below
200
+
201
+ NgxSkeletonLoaderModule.forRoot({
202
+ theme: {
203
+ // Enabliong theme combination
204
+ extendsFromRoot: true,
205
+ // ... list of CSS theme attributes
206
+ height: '30px',
207
+ },
208
+ }),
209
+ -->
210
+
211
+ <div class="item">
212
+ <ngx-skeleton-loader></ngx-skeleton-loader>
213
+ <!-- above line will produce a skeleton component using `height: 30px;`" -->
214
+ <ngx-skeleton-loader [theme]="{background: 'blue'}"></ngx-skeleton-loader>
215
+ <!-- above line will produce a skeleton component using `height: 30px; background: blue;`" -->
216
+ <ngx-skeleton-loader [theme]="{height: '50px', background: 'red'}"></ngx-skeleton-loader>
217
+ <!-- above line will produce a skeleton component using `height: 50px; background: red;`" -->
218
+ </div>
219
+ ```
220
+
221
+ - Adding new `custom-content` appearance. From now on, consumers can now add their own content inside `<ng-skeleton-loader></ng-skeleton-loader>` component. So that, they can add some custom content, such as SVG, as an example
222
+ - Adding examples for `custom-content` usage
223
+
224
+ ### Changed
225
+
226
+ - Updagrading module to Angular v15
227
+
228
+ ### Fixed
229
+
230
+ - Removing build warnings
231
+
232
+ ## [6.0.0][] - 2022-08-18
233
+
234
+ ### Changed
235
+
236
+ - Adding Publishing setup using NPX
237
+ - Replacing CSS class namespace from `.loader` to `.skeleton-loader`
238
+
239
+ #### Breaking Change
240
+
241
+ The CSS class used as namespace was changed. Previously, it was called `.loader` and now is `.skeleton-loader`. It might cause some issues in cases of `:host` DOM style scoping usage. For the sake of semantic versioning, please bear in mind this scenario in case of `:host` usage.
242
+
243
+ ## [5.0.0][] - 2022-02-08
244
+
245
+ ### Changed
246
+
247
+ > Thanks @yharaskrik
248
+
249
+ #### Breaking Change
250
+
251
+ Bundle distribution are now `esm2020`, `fesm2015` and `fesm2020`. UMD and CommonJS versions were support were removed from Angular CLI directly. So the next version for the package will be a major version to cover these changes accordingly.
252
+
253
+ - Updating package bundle distribution
254
+ - Updating `@angular/cli` to v13
255
+ - Applying project changes to v13
256
+ - Updating bundlesize check to point to `fesm2020`
257
+
258
+ ## [4.0.0][] - 2021-07-28
259
+
260
+ ### Fixed
261
+
262
+ #### Breaking Change
263
+
264
+ - Rolling back "Adding mechanism to prevents calling `forRoot()` more than once if module is loaded asynchronously in a submodule.". Unfortunately, this was affecting consumers and it needed to be reverted to avoid friction in other applications.
265
+
266
+ If you need to have this feature in place, the suggestion is to create a specific module in your app and apply the changes on your application.
267
+
268
+ ## [3.0.0][] - 2021-07-23
269
+
270
+ ### Added
271
+
272
+ #### Breaking Change
273
+
274
+ - Adding mechanism to prevents calling `forRoot()` more than once if module is loaded asynchronously in a submodule. This is required in order to avoid issues in consumers. To avoid that, consumers should load the module once on the main module instead - if loading submodules async.
275
+
276
+ ## [2.10.1][] - 2021-07-13
277
+
278
+ ### Fixed
279
+
280
+ - Ensures every ARIA progressbar node has an accessible name. This is caused by missing aria-label on the `<span>` element.
281
+
282
+ Thanks @rkristelijn for raising the issue and the pull request!
283
+
284
+ ## [2.10.0][] - 2021-06-15
285
+
286
+ ### Added
287
+
288
+ - Adding module configuration support via `forRoot()` method. Now you can add configure your module via `forRoot()`. You can now set the default of `appearance`, `animation`, `theme`, `loadingText`, `count` and/or `items`.E.G.
289
+
290
+ ```ts
291
+
292
+ @NgModule({
293
+ // ...
294
+ imports: [NgxSkeletonLoaderModule.forRoot({ appearance: 'circle', count: 3 )],
295
+ // ...
296
+ })
297
+ ```
298
+
299
+ ## [2.9.2][] - 2021-04-11
300
+
301
+ ### Changed
302
+
303
+ - Updating link in README.md
304
+
305
+ ### Fixed
306
+
307
+ - Bumping dev dependencies to avoid security issues
308
+
309
+ ## [2.9.1][] - 2021-02-20
310
+
311
+ ### Fixed
312
+
313
+ - Adding `appearance` attribute to be checked via `ngOnChanges`
314
+
315
+ ### Changed
316
+
317
+ - Updating examples with new features
318
+
319
+ ## [2.9.0][] - 2021-02-19
320
+
321
+ ### Added
322
+
323
+ - Adding validation for @Input attributes that needs internal manipulation. After these changes:
324
+ - if `count` is not a numeric value, it will use the default value as `1`
325
+ - if `animation` is not a valid attribute, it will use the default value as `progress`
326
+ - PS: The other values alredy have a fallback, so nothing to worry here
327
+ - Adding error feedback for `appearance` attribute in case of wrong configuration. Now it will show a error message on the console in case of receiving a wrong value
328
+
329
+ ### Changed
330
+
331
+ - Adding `ngOnChange` to validate `count` input in case of changes via binding
332
+ - Updating `README.md` with information about `appearance` and `theme` usage.
333
+
334
+ ## [2.8.0][] - 2021-02-18
335
+
336
+ ### Fixed
337
+
338
+ - Using `ngAcceptInputType_count` for template checking in count input. That solves issue https://github.com/willmendesneto/ngx-skeleton-loader/issues/59. You can find more details about it in https://angular.io/guide/template-typecheck
339
+ - Fixing type issues on `yarn build:ssr` command
340
+
341
+ ### Changed
342
+
343
+ - Updating `perf-marks` to `v1.14.1`
344
+ - Adding strict mode support in module
345
+ - Updating types for `theme` to match with `ngStyle`. More details in https://angular.io/api/common/NgStyle#properties
346
+
347
+ ## [2.7.0][] - 2021-02-06
348
+
349
+ ### Added
350
+
351
+ - Adding new `loadingText` attribute to be used as WAI-ARIA `aria-valuetext`. In this case, it will render the component using "Please wait ...". Otherwise, it defaults to "Loading..."
352
+
353
+ ```html
354
+ <!-- Passing loading text to be used as WAI-ARIA `aria-valuetext` -->
355
+ <!-- In this case, it will render the component using "Please wait ..." -->
356
+ <!-- Otherwise, it defaults to "Loading..." -->
357
+ <div class="skeleton-with-specific-loading-text">
358
+ <ngx-skeleton-loader loadingText="Please wait ..."></ngx-skeleton-loader>
359
+ </div>
360
+ ```
361
+
362
+ ### Changed
363
+
364
+ - Using OnPush as changeDetection mechanism into ngx-skeleton-loader component
365
+ - Adding ability to pass `false` as string or boolean (coming from variable value via binding) on `animation` attribute in `ngx-skeleton-loader` component configuration. animation will receive `false` as string when attribute field it's not using binding. Component now can receive `false` (boolean), "false" (string), or any other animation type via binding.
366
+
367
+ ```html
368
+ <div class="item">
369
+ <!-- Disables the animation -->
370
+ <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
371
+ <!-- Disables the animation, but receiving boolean value from binding -->
372
+ <!-- Via binding it can receive `false` (boolean), "false" (string), or any other animation type -->
373
+ <ngx-skeleton-loader [animation]="classAttributeWithBooleanFalseValue"></ngx-skeleton-loader>
374
+ <!-- Uses `progress` as animation -->
375
+ <ngx-skeleton-loader animation="progress"></ngx-skeleton-loader>
376
+ <ngx-skeleton-loader></ngx-skeleton-loader>
377
+ <!-- Uses `pulse` as animation -->
378
+ <ngx-skeleton-loader animation="pulse"></ngx-skeleton-loader>
379
+ </div>
380
+ ```
381
+
382
+ ## [2.6.2][] - 2020-12-08
383
+
384
+ ### Fixed
385
+
386
+ - Removing Lighthouse "Avoid non-composited animations" issue. Lighthouse shows warnings from ngx-skeleton-loader.scss -file (progress).
387
+
388
+ - "Avoid non-composited animations":
389
+ - "Animations which are not composited can be janky and contribute to CLS"
390
+
391
+ To solve that, instead of using CSS `background-position` the module is now using CSS `translate3d`, which improves the animation by using GPU instead of CPU. Issue fixed and performance boost added 🎉
392
+
393
+ ## [2.6.1][] - 2020-11-30
394
+
395
+ ### Fixed
396
+
397
+ - Solving `forRoot()` types error `Generic type 'ModuleWithProviders<T>' requires 1 type argument(s)`. Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/51
398
+
399
+ ## [2.6.0][] - 2020-11-15
400
+
401
+ ### Added
402
+
403
+ - Adding `NgxSkeletonLoaderModule.forRoot()` method. Usage:
404
+
405
+ ```js
406
+ import { NgModule } from '@angular/core';
407
+ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
408
+ // ... list of other app dependencies
409
+
410
+ import { AppComponent } from './app.component';
411
+ // ... list of other app components/modules
412
+
413
+ @NgModule({
414
+ declarations: [AppComponent],
415
+ imports: [NgxSkeletonLoaderModule.forRoot()],
416
+ providers: [],
417
+ bootstrap: [AppComponent],
418
+ })
419
+ export class AppModule {}
420
+ ```
421
+
422
+ ## [2.5.0][] - 2020-10-10
423
+
424
+ ### Fixed
425
+
426
+ - Fixing bundle size command on CircleCI pipeline
427
+
428
+ ### Changed
429
+
430
+ - Upgrading NodeJS to v14.11.0
431
+ - Updating `perf-marks` package to v1.14.0
432
+ - Improving skeleton animations fps by using `cubic-bezier` instead of `ease-in-out`
433
+
434
+ ## [2.4.4][] - 2020-08-21
435
+
436
+ ### Fixed
437
+
438
+ - Remove check requirements if perf-marks is running in a browser or not in Angular apps 🔥
439
+
440
+ ### Added
441
+
442
+ - Adding Angular Universal support for examples. Now we can run `npm run dev:ssr` and access `http://localhost:4200/index.html` and the page will run using angular universal 💪
443
+ - Adding `.prettierrc` file with some of the code styling rules
444
+
445
+ ## [2.4.3][] - 2020-08-13
446
+
447
+ ### Fixed
448
+
449
+ - Avoiding perf-marks call if running in Angular Universal applications
450
+
451
+ ## [2.4.2][] - 2020-08-01
452
+
453
+ ### Changed
454
+
455
+ - Bumping `perf-marks` to latest version
456
+
457
+ ## [2.4.1][] - 2020-08-01
458
+
459
+ ### Changed
460
+
461
+ - Bumping `perf-marks` to latest version
462
+
463
+ ## [2.4.0][] - 2020-08-01
464
+
465
+ ### Added
466
+
467
+ - Adding User Timing API to track component render and content loader time
468
+
469
+ ### Changed
470
+
471
+ - Updating examples with new skeleton simulation
472
+ - Adding Stackblitz link for user card skeleton loading demo
473
+
474
+ ## [2.3.0][] - 2020-08-01
475
+
476
+ ### Added
477
+
478
+ - Adding User Timing API to track component render and content loader time
479
+
480
+ ### Changed
481
+
482
+ - Updating examples with new skeleton simulation
483
+ - Adding Stackblitz link for user card skeleton loading demo
484
+
485
+ ## [2.2.1][] - 2020-06-30
486
+
487
+ ### Fixed
488
+
489
+ - For compatibility with IE11 by using indexOf instead of `includes`
490
+
491
+ ### Changed
492
+
493
+ - Updating `npm run postinstall` command to follow the new rules from update.angular.io website
494
+
495
+ ## [2.2.0][] - 2020-06-01
496
+
497
+ ### Added
498
+
499
+ - Using `prefers-reduced-motion` to respect user’s OS option to `Reduce Motion`. More details about `prefers-reduced-motion` in https://web.dev/prefers-reduced-motion/
500
+
501
+ ## [2.1.0][] - 2020-06-01
502
+
503
+ ### Changed
504
+
505
+ - Upgrading @angular/cli to version 9
506
+ - 🎉 Decreasing bundle size to 1.17KB 🎉
507
+
508
+ ## [2.0.0][] - 2020-05-15
509
+
510
+ ### Changed
511
+
512
+ - Upgrading NodeJS to v12.16.2
513
+ - Updating documentation with `animation` attribute
514
+
515
+ ### Added
516
+
517
+ - Supporting for new animation `progress-dark` to enable users when using theme with darker color schema
518
+ - Supporting for different animations 🎉
519
+
520
+ Now we can define the animation we want to use in `<ngx-skeleton-loader>` component via `animation` input. It's a string that can defined the animation used during the loading, having as options:
521
+
522
+ - `false`: it will disable the animation;
523
+ - `progress` - _default_: it will use it `progress` as animation;
524
+ - `pulse`: it will use `pulse` as animation;
525
+
526
+ > `progress` is the default animation, used as the single one previously. If you don't pass the animation attribute, it defaults to `progress`.
527
+
528
+ ```html
529
+ <div class="item">
530
+ <!-- Disables the animation -->
531
+ <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
532
+ <!-- Uses `progress` as animation -->
533
+ <ngx-skeleton-loader animation="progress"></ngx-skeleton-loader>
534
+ <ngx-skeleton-loader></ngx-skeleton-loader>
535
+ <!-- Uses `pulse` as animation -->
536
+ <ngx-skeleton-loader animation="pulse"></ngx-skeleton-loader>
537
+ </div>
538
+ ```
539
+
540
+ - Supporting enabling/disabling animations.
541
+ Now the users will be able to enable/disable animations by using `animation` input. It's a string with `false` as value that the component receives to check if it should not load progress animation.
542
+
543
+ > It works only to disable it. In case you want to keep enable it
544
+
545
+ ```js
546
+ <div class="item">
547
+ <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
548
+ </div>
549
+ ```
550
+
551
+ ## [1.2.7][] - 2020-04-13
552
+
553
+ ### Changed
554
+
555
+ - Decreasing bundle size after disable Ivy in production build
556
+ - Adding description, keywords and github information on `package.json` files
557
+
558
+ ## [1.2.6][] - 2020-02-26
559
+
560
+ ### Fixed
561
+
562
+ - Changing angular library configuration to prod and forcing it at publish time
563
+
564
+ ## [1.2.5][] - 2020-02-25
565
+
566
+ ### Fixed
567
+
568
+ - Changing angular library configuration to prod
569
+
570
+ ## [1.2.4][] - 2020-02-25
571
+
572
+ ### Changed
573
+
574
+ - Updating Github templates
575
+ - Updating Angular CLI to v9
576
+
577
+ ## [1.2.3][] - 2020-02-25
578
+
579
+ ### Fixed
580
+
581
+ - Solving peerDependency warning when installing library in an Angular 9 project
582
+
583
+ ## [1.2.2][] - 2019-06-22
584
+
585
+ ### Fixed
586
+
587
+ - Fixing component dimensions via theme
588
+
589
+ ## [1.2.1][] - 2019-06-08
590
+
591
+ ### Changed
592
+
593
+ - Updating Angular CLI to v8
594
+
595
+ ## [1.2.0][] - 2019-04-19
596
+
597
+ ### Changed
598
+
599
+ - Updating Angular CLI to 7.3.8
600
+
601
+ ## [1.1.2][] - 2019-01-07
602
+
603
+ ### Added
604
+
605
+ - Adding badges for stackblitz, bundlephobia and license
606
+
607
+ ### Changed
608
+
609
+ - Removing unnecessary CSS styles for skeleton
610
+
611
+ ## [1.1.1][] - 2018-12-17
612
+
613
+ ### Fixed
614
+
615
+ - Fixing Stackblitz link demo link
616
+
617
+ ## [1.1.0][] - 2018-12-17
618
+
619
+ ### Added
620
+
621
+ - Added GitHub urls into `package.json`
622
+ - Added Circle CI integration
623
+ - Added Coveralls integration
624
+ - Added GitHub templates
625
+ - Added `CODE_OF_CONDUCT.md` with the Code of conduct
626
+ - Added unit tests for skeletons and demo components
627
+
628
+ ### Changed
629
+
630
+ - Decreased bundle size
631
+ - New gif showing `ngx-skeleton-loader` in action
632
+
633
+ ## [1.0.2][] - 2018-12-16
634
+
635
+ ### Fixed
636
+
637
+ - Added markdown files in dist folder in build time
638
+
639
+ ## [1.0.1][] - 2018-12-16
640
+
641
+ ### Fixed
642
+
643
+ - Added markdown files in dist folder in build time
644
+
645
+ ## [1.0.0][] - 2018-12-16
646
+
647
+ ### Fixed
648
+
649
+ - Fixed build script
650
+
651
+ ## [0.0.1][] - 2018-12-16
652
+
653
+ ### Added
654
+
655
+ - Created `ngx-skeleton-loader`
656
+ - Created test automation for the module
657
+
658
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v0.0.1...HEAD
659
+ [0.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v0.0.1
660
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.0...HEAD
661
+ [1.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.0
662
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.2...HEAD
663
+ [1.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.1...v1.0.2
664
+ [1.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.1
665
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.2...HEAD
666
+ [1.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.2
667
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.0...HEAD
668
+ [1.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.0
669
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.1...HEAD
670
+ [1.1.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.1
671
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.4...HEAD
672
+ [1.2.4]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.3...v1.2.4
673
+ [1.2.3]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.2...v1.2.3
674
+ [1.2.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.1...v1.2.2
675
+ [1.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.0...v1.2.1
676
+ [1.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.2...v1.2.0
677
+ [1.1.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.2
678
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.5...HEAD
679
+ [1.2.5]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.5
680
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.6...HEAD
681
+ [1.2.6]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.6
682
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.7...HEAD
683
+ [1.2.7]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.7
684
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.0.0...HEAD
685
+ [2.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.0.0
686
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.1.0...HEAD
687
+ [2.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.1.0
688
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.0...HEAD
689
+ [2.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.0
690
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.1...HEAD
691
+ [2.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.1
692
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.3.0...HEAD
693
+ [2.3.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.3.0
694
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.0...HEAD
695
+ [2.4.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.0
696
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.1...HEAD
697
+ [2.4.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.1
698
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.2...HEAD
699
+ [2.4.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.2
700
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.3...HEAD
701
+ [2.4.3]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.3
702
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.4...HEAD
703
+ [2.4.4]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.4
704
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.5.0...HEAD
705
+ [2.5.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.5.0
706
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.0...HEAD
707
+ [2.6.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.0
708
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.1...HEAD
709
+ [2.6.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.1
710
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.2...HEAD
711
+ [2.6.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.2
712
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.7.0...HEAD
713
+ [2.7.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.7.0
714
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.8.0...HEAD
715
+ [2.8.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.8.0
716
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.0...HEAD
717
+ [2.9.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.0
718
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.1...HEAD
719
+ [2.9.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.1
720
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.2...HEAD
721
+ [2.9.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.2
722
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.10.0...HEAD
723
+ [2.10.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.10.0
724
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.10.1...HEAD
725
+ [2.10.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.10.1
726
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v4.0.0...HEAD
727
+ [4.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v3.0.0...v4.0.0
728
+ [3.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v3.0.0
729
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v5.0.0...HEAD
730
+ [5.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v5.0.0
731
+ [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v6.0.0...HEAD
732
+ [6.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v6.0.0
733
+ [Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v14.0.0...HEAD
734
+ [14.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v13.0.0...v14.0.0
735
+ [13.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v12.0.0...v13.0.0
736
+ [12.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.3.0...v12.0.0
737
+ [11.3.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.2.1...v11.3.0
738
+ [11.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.2.0...v11.2.1
739
+ [11.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.1.0...v11.2.0
740
+ [11.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.0.0...v11.1.0
741
+ [11.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v10.0.0...v11.0.0
742
+ [10.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v9.0.0...v10.0.0
743
+ [9.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v9.0.0...v9.0.0
744
+ [9.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.1.0...v9.0.0
745
+ [8.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.2...v8.1.0
746
+ [8.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.1...v8.0.2
747
+ [8.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.2...v8.0.1
748
+ [8.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.1...v8.0.2
749
+ [8.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.0...v8.0.1
750
+ [8.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v7.0.0...v8.0.0
751
+ [7.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v7.0.0