ngx-skeleton-loader 12.0.0 → 13.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/README.md CHANGED
@@ -1,409 +1,24 @@
1
- # NGX Skeleton loader
1
+ # NgxSkeletonLoader
2
2
 
3
- [![npm downloads](https://img.shields.io/npm/dm/ngx-skeleton-loader.svg)](https://npmjs.org/ngx-skeleton-loader)
4
- [![npm](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-skeleton-loader-sample)
5
- [![npm](https://img.shields.io/badge/stackblitz-online-orange.svg)](https://stackblitz.com/edit/ngx-skeleton-loader-user-card-component-sample)
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.0.0.
6
4
 
7
- [![NPM](https://nodei.co/npm/ngx-skeleton-loader.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/ngx-skeleton-loader)
8
- [![NPM](https://nodei.co/npm-dl/ngx-skeleton-loader.png?height=3&months=3)](https://npmjs.org/ngx-skeleton-loader)
5
+ ## Code scaffolding
9
6
 
10
- [![Build Status](https://circleci.com/gh/willmendesneto/ngx-skeleton-loader.svg?style=shield)](https://circleci.com/gh/willmendesneto/ngx-skeleton-loader)
11
- [![Coverage Status](https://coveralls.io/repos/willmendesneto/ngx-skeleton-loader/badge.svg?branch=main)](https://coveralls.io/r/willmendesneto/ngx-skeleton-loader?branch=main)
12
- [![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/ngx-skeleton-loader.svg)](https://bundlephobia.com/result?p=ngx-skeleton-loader)
13
- [![npm](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](/LICENSE)
7
+ Run `ng generate component component-name --project ngx-skeleton-loader` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-skeleton-loader`.
8
+ > Note: Don't forget to add `--project ngx-skeleton-loader` or else it will be added to the default project in your `angular.json` file.
14
9
 
15
- ![ngx-skeleton-loader in action](https://user-images.githubusercontent.com/1252570/50053778-d4e0d900-018e-11e9-9de7-fad6f9fddd9e.gif)
10
+ ## Build
16
11
 
17
- ## Why skeletons?
12
+ Run `ng build ngx-skeleton-loader` to build the project. The build artifacts will be stored in the `dist/` directory.
18
13
 
19
- > If you want to get more details about that, please read ["NGX-Skeleton-Loader — States, Animations, Performance, and Accessibility for your Angular App"](https://willmendesneto.com/posts/ngx-skeleton-loader-states-animations-performance-and-accessibility-for-your-angular-app) blog post
14
+ ## Publishing
20
15
 
21
- The idea of this component is make the process transparent and easier. So the main point is integrate this component with other tooling process, such as:
16
+ After building your library with `ng build ngx-skeleton-loader`, go to the dist folder `cd dist/ngx-skeleton-loader` and run `npm publish`.
22
17
 
23
- - Server-side rendering;
24
- - Progressive rendering;
25
- - Any other that you like :)
18
+ ## Running unit tests
26
19
 
27
- It's totally transparent for you and you can integrate easier in your application, improving your user experience 🎉
20
+ Run `ng test ngx-skeleton-loader` to execute the unit tests via [Karma](https://karma-runner.github.io).
28
21
 
29
- - [Demo](#demo)
30
- - [Install](#install)
31
- - [Setup](#setup)
32
- - [Development](#development)
33
- - [Contribute](#contribute)
22
+ ## Further help
34
23
 
35
- ## Demo
36
-
37
- Try out our demos on Stackblitz!
38
-
39
- - [Usage: animations, appearance, and themes](https://ngx-skeleton-loader-sample.stackblitz.io)
40
- - [User Card Component Loading simulation using NGX Skeleton Loader](https://ngx-skeleton-loader-user-card-component-sample.stackblitz.io)
41
-
42
- ## Install
43
-
44
- You can get it on NPM installing `ngx-skeleton-loader` module as a project dependency.
45
-
46
- ```shell
47
- npm install ngx-skeleton-loader --save
48
- ```
49
-
50
- ## Setup
51
-
52
- ## Standalone Setup
53
-
54
- Add `ngx-skeleton-loader` to your application's `app.config.ts` providers.
55
-
56
- ```typescript
57
- // app.config.ts
58
-
59
- import { ApplicationConfig } from '@angular/core';
60
- import { provideNgxSkeletonLoader } from 'ngx-skeleton-loader';
61
-
62
- export const appConfig: ApplicationConfig = {
63
- providers: [
64
- provideNgxSkeletonLoader({
65
- theme: {
66
- extendsFromRoot: true,
67
- height: '30px',
68
- },
69
- }),
70
- ]
71
- };
72
- ```
73
-
74
- After that, you can use the `ngx-skeleton-loader` component in your templates. Optionally you can pass configuration data into the component itself
75
-
76
- - `ngx-skeleton-loader`: Handle the skeleton animation and the skeleton styles of your app;
77
-
78
- ```html
79
- <div class="item">
80
- <ngx-skeleton-loader count="5" appearance="circle" />
81
- </div>
82
- ```
83
-
84
- ## NgModule Setup
85
-
86
- You'll need to add `NgxSkeletonLoaderModule` to your application module. So that, the `<ngx-skeleton-loader>` components will be accessible in your application.
87
-
88
- ```typescript
89
- ...
90
- import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
91
- ...
92
-
93
- @NgModule({
94
- declarations: [
95
- YourAppComponent
96
- ],
97
- imports: [
98
- ...
99
- NgxSkeletonLoaderModule,
100
- ...
101
- ],
102
- providers: [],
103
- bootstrap: [YourAppComponent]
104
- })
105
-
106
- export class YourAppComponent {}
107
-
108
- ```
109
-
110
- After that, you can use the `ngx-skeleton-loader` components in your templates, passing the configuration data into the component itself.
111
-
112
- - `ngx-skeleton-loader`: Handle the skeleton animation and the skeleton styles of your app;
113
-
114
- ```html
115
- <div class="item">
116
- <ngx-skeleton-loader count="5" appearance="circle" />
117
- </div>
118
- <div class="item">
119
- <!-- It will use `px` as default CSS measure unit -->
120
- <ngx-skeleton-loader count="5" appearance="square" size="100" />
121
- </div>
122
- ```
123
-
124
- ### Using `NgxSkeletonLoaderModule.forRoot()`
125
-
126
- Also, you can import the module in your app by calling `NgxSkeletonLoaderModule.forRoot()` when adding it. So it will be available across your Angular application.
127
-
128
- Importing the module this way also allows you to globally configure the default values for the `ngx-skeleton-loader` components in your application, in case you need some different default values for your app.
129
-
130
- ```typescript
131
- ...
132
- import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
133
- ...
134
-
135
- @NgModule({
136
- declarations: [
137
- YourAppComponent
138
- ],
139
- imports: [
140
- ...
141
- NgxSkeletonLoaderModule.forRoot({ animation: 'pulse', loadingText: 'This item is actually loading...' }),
142
- ...
143
- ],
144
- providers: [],
145
- bootstrap: [YourAppComponent]
146
- })
147
-
148
- export class YourAppComponent {}
149
-
150
- ```
151
-
152
- ```html
153
- <div class="item">
154
- <ngx-skeleton-loader count="5" appearance="circle" />
155
- <!-- above line will produce the rendering of 5 circles with the pulse animation and the aria-valuetext attribute set with "This item is actually loading...", since it was
156
- configured via `NgxSkeletonLoaderModule.forRoot()`-->
157
-
158
- <!-- It will render a component with `aria-valuetext` attribute set with `Loading section content`,
159
- since it was passed directly via input attribute `loadingText` -->
160
- <ngx-skeleton-loader count="5" loadingText="Loading section content" />
161
- </div>
162
- ```
163
-
164
- #### Extending `theme` via `NgxSkeletonLoaderModule.forRoot()`
165
-
166
- > 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. Check these steps in case you need to change this behaviour in your app
167
-
168
- This method is also accepting the option of having a global theme and local theme inputs. You can enable it by passing `NgxSkeletonLoaderModule.forRoot({ theme: { extendsFromRoot: true, /* ...list of CSS atributes */} })` in your module. Quite simple, right? 😄
169
-
170
- By using that configuration in your application, you should also be aware that:
171
-
172
- - By default, every `<ngx-skeleton-loader>` component will use `theme` coming from `NgxSkeletonLoaderModule.forRoot()` as the source of truth
173
- - 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.
174
-
175
- As an example:
176
-
177
- ```typescript
178
- ...
179
- import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
180
- ...
181
-
182
- @NgModule({
183
- declarations: [
184
- YourAppComponent
185
- ],
186
- imports: [
187
- ...
188
- NgxSkeletonLoaderModule.forRoot({
189
- theme: {
190
- // Enabliong theme combination
191
- extendsFromRoot: true,
192
- // ... list of CSS theme attributes
193
- height: '30px',
194
- },
195
- }),
196
- ...
197
- ],
198
- providers: [],
199
- bootstrap: [YourAppComponent]
200
- })
201
-
202
- export class YourAppComponent {}
203
-
204
- ```
205
-
206
- ```html
207
- <div class="item">
208
- <ngx-skeleton-loader />
209
- <!-- above line will produce a skeleton component using `height: 30px;`" -->
210
- <ngx-skeleton-loader [theme]="{background: 'blue'}" />
211
- <!-- above line will produce a skeleton component using `height: 30px; background: blue;`" -->
212
- <ngx-skeleton-loader [theme]="{height: '50px', background: 'red'}" />
213
- <!-- above line will produce a skeleton component using `height: 50px; background: red;`" -->
214
- </div>
215
- ```
216
-
217
- ## Angular 17+ Deferrable Views example
218
-
219
- ```html
220
- <div class="item">
221
- @defer {
222
- <my-item-view />
223
- } @placeholder (minimum 1000ms) {
224
- <ngx-skeleton-loader />
225
- }
226
- </div>
227
- ```
228
-
229
-
230
- ## WAI-ARIA values
231
-
232
- - loadingText - _default_ `Loading...`: attribute that defines the text value for `aria-valuetext` attribute. Defaults to "Loading..."
233
- - `aria-label` - _default_ `loading`: you can add `ariaLabel` as input of the component to set a different value.
234
-
235
- ## Appearance
236
-
237
- You can also define which appearance want to use in your skeleton loader by passing the options in your component via `[appearance]` attribute.
238
-
239
- ### Options
240
-
241
- - `''` - _default_: it will use it `''` as appearance. At the end, it will render like a line;
242
- - `line`: it will render like a line. This is the same behavior as passing an empty string;
243
- - `circle`: it will use `circle` as appearance. Great for avatar skeletons, for example :);
244
- - `square`: it will use `square` as appearance and render it appropriately. Great for cards and images, for example; It also requires `size` to be passed through the component - `size` has default size of `40px` and it has `measureUnit` as optional way to change default CSS measure unit from `px` to one of the valid options: `px`, `em`, `rem`, `%`, `vh`, `vw`
245
- - `custom-content`: it will NOT add any appearance. Great for custom content, such as SVG, internal components and such. Although not rendering appearance, animation will be added unless component has `animation="false"` prop;
246
-
247
- ### Appearance props (specific for `square`)
248
-
249
- When setting `square` as appearance, your component can also use these other input attributes to configure it properly
250
- - `size` - default _40_: number to be passed as definition for `width` and `height`. If not passed, it defaults to `40`
251
- - `measureUnit` - default _px_: CSS measure unit to be used for `width` and `height`. If not passed, it defaults to `px`. Valid options: `px`, `em`, `rem`, `%`, `vh`, `vw`
252
-
253
- ## Animations
254
-
255
- You can also define which CSS animation you want to use - even not use any, if it's the case - in your skeleton loader by passing the options in your component via `[animation]` attribute.
256
-
257
- ### Options
258
-
259
- - `"false"` (as string): it will disable the animation;
260
- - `false` (as boolean): it will disable the animation. 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;
261
- - `progress` - _default_: it will use it `progress` as animation;
262
- - `progress-dark`: it will use it `progress-dark` as animation. Recommended if your color schema is darken;
263
- - `pulse`: it will use `pulse` as animation;
264
- - `pulse-dark`: it will use `pulse-dark` as animation. Recommended if your color schema is darken;
265
-
266
- > `progress` is the default animation, used as the single one previously. If you don't pass the animation attribute, it defaults to `progress`.
267
-
268
- ```html
269
- <!--
270
- If you need to change all the background wrapper
271
- you need to apply the style changes on the
272
- `ngx-skeleton-loader` component wrapper
273
- -->
274
- <div class="item">
275
- <!-- Disables the animation -->
276
- <ngx-skeleton-loader animation="false" />
277
- <!-- Disables the animation, but receiving boolean value from binding -->
278
- <!-- Via binding it can receive `false` (boolean), "false" (string), or any other animation type -->
279
- <ngx-skeleton-loader [animation]="classAttributeWithBooleanFalseValue" />
280
- <!-- Uses `progress` as animation -->
281
- <ngx-skeleton-loader animation="progress" />
282
- <ngx-skeleton-loader />
283
- <!-- Uses `pulse` as animation -->
284
- <ngx-skeleton-loader animation="pulse" />
285
- </div>
286
- ```
287
-
288
- > You can check the code details in the [Stackblitz Live Demo Link](https://stackblitz.com/edit/ngx-skeleton-loader-sample?file=app%2Fapp.component.html)
289
-
290
- ## Theming
291
-
292
- You can also define different styles for the skeleton loader by passing an object with the css styles - in dashed case - into the component via `[theme]` attribute.
293
-
294
- ```html
295
- <!--
296
- If you need to change all the background wrapper
297
- you need to apply the style changes on the
298
- `ngx-skeleton-loader` component wrapper
299
- -->
300
-
301
- <div style="background: #FF0001; padding: 10px;">
302
- <ngx-skeleton-loader
303
- count="5"
304
- [theme]="{
305
- 'border-radius': '5px',
306
- height: '50px',
307
- 'background-color': '#992929',
308
- border: '1px solid white'
309
- }"
310
- />
311
- </div>
312
- ```
313
-
314
- The [theme] attribute now accepts the same configuration as `[style]` as well. That means you can manage to use like you're doing with the built-in directive, having a pleasure and beautiful experience
315
-
316
- ```html
317
- <!--
318
- Note that we are using a combination of styles and [style] inside theme object,
319
- having `height.px` receiving a number and `background-color` receiving a HEX Color
320
- -->
321
- <div style="background: #FF0001; padding: 10px;">
322
- <ngx-skeleton-loader
323
- count="5"
324
- [theme]="{
325
- 'height.px': 50,
326
- 'background-color': '#992929'
327
- }"
328
- />
329
- </div>
330
- ```
331
-
332
- ### ⚠️ This is here only as a documentation, but it's not encouraged to be used. Please consider use it with caution ⚠️
333
-
334
- Also, you can use CSS to add theme styles into your component. However, there are some implications:
335
-
336
- - You're using `:host` in your stylesheet, which means **you are aware of any possible problem `:host` can create for your app at that level since it's based on [`:host` DOM style scoping](https://developer.mozilla.org/en-US/docs/Web/CSS/:host)**
337
- - You're adding stylesheet based on `<ngx-skeleton-loader>` internal classes. It means that **class naming changes on module's side will be breaking changes for your application as well**.
338
-
339
- As an example, your Component file is like this
340
-
341
- ```typescript
342
- import { Component } from '@angular/core';
343
-
344
- @Component({
345
- selector: 'my-ngx-skeleton-loader-with-theming',
346
- templateUrl: './my-ngx-skeleton-loader-with-theming.component.html',
347
- styleUrls: ['./my-ngx-skeleton-loader-with-theming.component.css'],
348
- })
349
- export class MyNGXSkeletonLoaderWithThemingComponent {
350
- /* ... code goes here*/
351
- }
352
- ```
353
-
354
- And your component HTML code is
355
-
356
- ```html
357
- <!--
358
- file: my-ngx-skeleton-loader-with-theming.component.html
359
-
360
- As an example, it's not using themes via [theme] attributes.
361
- -->
362
-
363
- <ngx-skeleton-loader count="5" animation="pulse" />
364
- ```
365
-
366
- You can apply theme changes in our stylesheet. At the end it will be
367
-
368
- ```css
369
- /* file: `my-ngx-skeleton-loader-with-theming.component.css`
370
- *
371
- * You can find more details about `:host` at
372
- * Angular Component Style Docs https://angular.io/guide/component-styles#host
373
- */
374
- :host >>> ngx-skeleton-loader .skeleton-loader {
375
- border-radius: 5px;
376
- height: 50px;
377
- background-color: #992929;
378
- border: 1px solid white;
379
- }
380
- ```
381
-
382
- > You should change the styles on the skeleton wrapper element in case you need to change the background color. You can check the code details in the [Stackblitz Live Demo Link](https://stackblitz.com/edit/ngx-skeleton-loader-sample?file=app%2Fapp.component.html) or check it out a content load simulation [in this Stackblitz Live Demo Link](https://stackblitz.com/edit/ngx-skeleton-loader-user-card-component-sample?file=app%2Fapp.component.html)
383
-
384
- ## Development
385
-
386
- ### Run demo locally
387
-
388
- 1. This project uses [Angular CLI](https://cli.angular.io/) as base. That means you just need to run `npm start` and access the link `http://localhost:4200` in your browser
389
-
390
- ### Run tests
391
-
392
- 1. Run `npm test` for run tests. In case you want to test using watch, please use `npm run tdd`
393
-
394
- ### Publish
395
-
396
- this project is using `np` package to publish, which makes things straightforward. EX: `npx np <patch|minor|major> --no-yarn --no-cleanup --contents=dist/ngx-skeleton-loader`
397
-
398
- > For more details, [please check np package on npmjs.com](https://www.npmjs.com/package/np)
399
-
400
- ## Contribute
401
-
402
- For any type of contribution, please follow the instructions in [CONTRIBUTING.md](https://github.com/willmendesneto/ngx-skeleton-loader/blob/main/CONTRIBUTING.md) and read [CODE_OF_CONDUCT.md](https://github.com/willmendesneto/ngx-skeleton-loader/blob/main/CODE_OF_CONDUCT.md) and [PUBLISHING_HOTFIX.md](https://github.com/willmendesneto/ngx-skeleton-loader/blob/main/PUBLISHING_HOTFIX.md) files.
403
-
404
- ## Author
405
-
406
- **Wilson Mendes (willmendesneto)**
407
-
408
- - <https://instagram.com/willmendesneto>
409
- - <http://github.com/willmendesneto>
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
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": "12.0.0",
4
+ "version": "13.0.0",
5
5
  "peerDependencies": {
6
6
  "@angular/common": ">=19.0.0",
7
7
  "@angular/core": ">=19.0.0"
package/CHANGELOG.md DELETED
@@ -1,691 +0,0 @@
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
- ## [Unreleased][]
9
-
10
- ## [12.0.0][] - 2026-01-18
11
-
12
- ### Changed
13
-
14
- - Upgrading projecto to Angular v21
15
-
16
- ## [11.3.0][] - 2025-08-27
17
-
18
- ### Added
19
-
20
- - Adding info about `measureUnit` usage on `README.md` file
21
- - Adding support for different CSS measurement units via `measureUnit` input attribute
22
-
23
- ### Fixed
24
-
25
- - Removing unnecessary folders from package distribution
26
-
27
- ### Changed
28
-
29
- - Using CSS Vars for skeleton definition
30
- - Moving bundlesize configuration into `.bundlesize.config.json` file
31
-
32
- ### Fixed
33
-
34
- - Fixing dynamic height/width via `[theme]`
35
-
36
- ## [11.2.1][] - 2025-06-27
37
-
38
- ### Changed
39
-
40
- - Adding new appearance `square`
41
- - Fixing `peerDependencies` install
42
-
43
- ## [11.2.0][] - 2025-06-09
44
-
45
- ### Added
46
-
47
- - Adding new `pulse-dark` animation
48
-
49
- ### Changed
50
-
51
- - Upgrading Angular deps to v20
52
- - Replacing `npm install` to `npm ci` on Circle CI pipeline
53
-
54
- ## [11.1.0][] - 2025-05-19
55
-
56
- ### Added
57
- - Adding support for standalone `provideNgxSkeletonLoader()`
58
-
59
- ### Changed
60
- - Upgrade project to use eslint v9
61
- - Updating docs to reflect standalone `provideNgxSkeletonLoader()` support
62
-
63
- ## [11.0.0][] - 2025-04-09
64
-
65
- ### Changed
66
- - Upgrading project to use Node.js v22.14.0
67
- - Upgrading project to Angular v19
68
- - 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.
69
-
70
- ## [10.0.0][] - 2025-01-24
71
-
72
- ### Removed
73
- - 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
74
-
75
- ### Changed
76
-
77
- > Thanks to @lekhmanrus
78
-
79
- - Upgrading `@angular/*` packages to v19 - https://github.com/willmendesneto/ngx-skeleton-loader/pull/179
80
- - Implementing Angular Signals integration - https://github.com/willmendesneto/ngx-skeleton-loader/pull/179
81
- - Making NGX-Skeleton-Loader Standalone Compliant - Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/183
82
-
83
- ### Added
84
- - Adding `PUBLISHING_HOTFIX.md` file describing all the steps to cover a hotfix in older version of NGX-Skeleton-Loader module
85
-
86
- ## [9.0.0][] - 2024-01-13
87
- ### Changed
88
-
89
- - Upgrading `@angular/*` packages to v17
90
- - Upgrading NodeJS to v20.10.0
91
-
92
- ## [8.1.0][] - 2023-09-12
93
-
94
- ### Fixed
95
-
96
- - fixing issue with optional chaining not being supported on apps using Angular CLI <=v11;
97
-
98
- ### Changed
99
-
100
- - Changed input values validation in order to remove optional chaining. Instead, the code is now using object destructuring to get config theme value;
101
-
102
- ## [8.0.2][] - 2023-09-11
103
-
104
- ### Fixed
105
-
106
- - Fixing `README.md` docs
107
-
108
- ## [8.0.1][] - 2023-08-30
109
-
110
- ### Fixed
111
-
112
- - Fixing CSS reduce motion in MacOS;
113
-
114
- ## [8.0.0][] - 2023-06-20
115
-
116
- ### Changed
117
-
118
- - Updating project to support Angular v16;
119
- - Updating NodeJS version to v18;
120
- - Updating peerDependencies to point to latest `@angular/*` packages;
121
-
122
- ### Removed
123
-
124
- - Removing `perf-marks` dependency library;
125
-
126
- ## [7.0.0][] - 2023-02-04
127
-
128
- ### Added
129
-
130
- - Adding support for extending global theme added via `NgxSkeletonLoaderModule.forRoot({ theme: /* ...list of CSS atributes */} })`
131
-
132
- 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.
133
-
134
- By using `NgxSkeletonLoaderModule.forRoot({ theme: { extendsFromRoot: true, /* ...list of CSS atributes */} })` in your application, you should also be aware that:
135
-
136
- - By default, every `<ngx-skeleton-loader>` component will use `theme` coming from `NgxSkeletonLoaderModule.forRoot()` as the source of truth
137
- - 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.
138
-
139
- ```html
140
- <!--
141
- // ... E.G: App is using this configuration below
142
-
143
- NgxSkeletonLoaderModule.forRoot({
144
- theme: {
145
- // Enabliong theme combination
146
- extendsFromRoot: true,
147
- // ... list of CSS theme attributes
148
- height: '30px',
149
- },
150
- }),
151
- -->
152
-
153
- <div class="item">
154
- <ngx-skeleton-loader></ngx-skeleton-loader>
155
- <!-- above line will produce a skeleton component using `height: 30px;`" -->
156
- <ngx-skeleton-loader [theme]="{background: 'blue'}"></ngx-skeleton-loader>
157
- <!-- above line will produce a skeleton component using `height: 30px; background: blue;`" -->
158
- <ngx-skeleton-loader [theme]="{height: '50px', background: 'red'}"></ngx-skeleton-loader>
159
- <!-- above line will produce a skeleton component using `height: 50px; background: red;`" -->
160
- </div>
161
- ```
162
-
163
- - 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
164
- - Adding examples for `custom-content` usage
165
-
166
- ### Changed
167
-
168
- - Updagrading module to Angular v15
169
-
170
- ### Fixed
171
-
172
- - Removing build warnings
173
-
174
- ## [6.0.0][] - 2022-08-18
175
-
176
- ### Changed
177
-
178
- - Adding Publishing setup using NPX
179
- - Replacing CSS class namespace from `.loader` to `.skeleton-loader`
180
-
181
- #### Breaking Change
182
-
183
- 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.
184
-
185
- ## [5.0.0][] - 2022-02-08
186
-
187
- ### Changed
188
-
189
- > Thanks @yharaskrik
190
-
191
- #### Breaking Change
192
-
193
- 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.
194
-
195
- - Updating package bundle distribution
196
- - Updating `@angular/cli` to v13
197
- - Applying project changes to v13
198
- - Updating bundlesize check to point to `fesm2020`
199
-
200
- ## [4.0.0][] - 2021-07-28
201
-
202
- ### Fixed
203
-
204
- #### Breaking Change
205
-
206
- - 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.
207
-
208
- 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.
209
-
210
- ## [3.0.0][] - 2021-07-23
211
-
212
- ### Added
213
-
214
- #### Breaking Change
215
-
216
- - 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.
217
-
218
- ## [2.10.1][] - 2021-07-13
219
-
220
- ### Fixed
221
-
222
- - Ensures every ARIA progressbar node has an accessible name. This is caused by missing aria-label on the `<span>` element.
223
-
224
- Thanks @rkristelijn for raising the issue and the pull request!
225
-
226
- ## [2.10.0][] - 2021-06-15
227
-
228
- ### Added
229
-
230
- - 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.
231
-
232
- ```ts
233
-
234
- @NgModule({
235
- // ...
236
- imports: [NgxSkeletonLoaderModule.forRoot({ appearance: 'circle', count: 3 )],
237
- // ...
238
- })
239
- ```
240
-
241
- ## [2.9.2][] - 2021-04-11
242
-
243
- ### Changed
244
-
245
- - Updating link in README.md
246
-
247
- ### Fixed
248
-
249
- - Bumping dev dependencies to avoid security issues
250
-
251
- ## [2.9.1][] - 2021-02-20
252
-
253
- ### Fixed
254
-
255
- - Adding `appearance` attribute to be checked via `ngOnChanges`
256
-
257
- ### Changed
258
-
259
- - Updating examples with new features
260
-
261
- ## [2.9.0][] - 2021-02-19
262
-
263
- ### Added
264
-
265
- - Adding validation for @Input attributes that needs internal manipulation. After these changes:
266
- - if `count` is not a numeric value, it will use the default value as `1`
267
- - if `animation` is not a valid attribute, it will use the default value as `progress`
268
- - PS: The other values alredy have a fallback, so nothing to worry here
269
- - 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
270
-
271
- ### Changed
272
-
273
- - Adding `ngOnChange` to validate `count` input in case of changes via binding
274
- - Updating `README.md` with information about `appearance` and `theme` usage.
275
-
276
- ## [2.8.0][] - 2021-02-18
277
-
278
- ### Fixed
279
-
280
- - 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
281
- - Fixing type issues on `yarn build:ssr` command
282
-
283
- ### Changed
284
-
285
- - Updating `perf-marks` to `v1.14.1`
286
- - Adding strict mode support in module
287
- - Updating types for `theme` to match with `ngStyle`. More details in https://angular.io/api/common/NgStyle#properties
288
-
289
- ## [2.7.0][] - 2021-02-06
290
-
291
- ### Added
292
-
293
- - 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..."
294
-
295
- ```html
296
- <!-- Passing loading text to be used as WAI-ARIA `aria-valuetext` -->
297
- <!-- In this case, it will render the component using "Please wait ..." -->
298
- <!-- Otherwise, it defaults to "Loading..." -->
299
- <div class="skeleton-with-specific-loading-text">
300
- <ngx-skeleton-loader loadingText="Please wait ..."></ngx-skeleton-loader>
301
- </div>
302
- ```
303
-
304
- ### Changed
305
-
306
- - Using OnPush as changeDetection mechanism into ngx-skeleton-loader component
307
- - 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.
308
-
309
- ```html
310
- <div class="item">
311
- <!-- Disables the animation -->
312
- <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
313
- <!-- Disables the animation, but receiving boolean value from binding -->
314
- <!-- Via binding it can receive `false` (boolean), "false" (string), or any other animation type -->
315
- <ngx-skeleton-loader [animation]="classAttributeWithBooleanFalseValue"></ngx-skeleton-loader>
316
- <!-- Uses `progress` as animation -->
317
- <ngx-skeleton-loader animation="progress"></ngx-skeleton-loader>
318
- <ngx-skeleton-loader></ngx-skeleton-loader>
319
- <!-- Uses `pulse` as animation -->
320
- <ngx-skeleton-loader animation="pulse"></ngx-skeleton-loader>
321
- </div>
322
- ```
323
-
324
- ## [2.6.2][] - 2020-12-08
325
-
326
- ### Fixed
327
-
328
- - Removing Lighthouse "Avoid non-composited animations" issue. Lighthouse shows warnings from ngx-skeleton-loader.scss -file (progress).
329
-
330
- - "Avoid non-composited animations":
331
- - "Animations which are not composited can be janky and contribute to CLS"
332
-
333
- 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 🎉
334
-
335
- ## [2.6.1][] - 2020-11-30
336
-
337
- ### Fixed
338
-
339
- - Solving `forRoot()` types error `Generic type 'ModuleWithProviders<T>' requires 1 type argument(s)`. Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/51
340
-
341
- ## [2.6.0][] - 2020-11-15
342
-
343
- ### Added
344
-
345
- - Adding `NgxSkeletonLoaderModule.forRoot()` method. Usage:
346
-
347
- ```js
348
- import { NgModule } from '@angular/core';
349
- import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
350
- // ... list of other app dependencies
351
-
352
- import { AppComponent } from './app.component';
353
- // ... list of other app components/modules
354
-
355
- @NgModule({
356
- declarations: [AppComponent],
357
- imports: [NgxSkeletonLoaderModule.forRoot()],
358
- providers: [],
359
- bootstrap: [AppComponent],
360
- })
361
- export class AppModule {}
362
- ```
363
-
364
- ## [2.5.0][] - 2020-10-10
365
-
366
- ### Fixed
367
-
368
- - Fixing bundle size command on CircleCI pipeline
369
-
370
- ### Changed
371
-
372
- - Upgrading NodeJS to v14.11.0
373
- - Updating `perf-marks` package to v1.14.0
374
- - Improving skeleton animations fps by using `cubic-bezier` instead of `ease-in-out`
375
-
376
- ## [2.4.4][] - 2020-08-21
377
-
378
- ### Fixed
379
-
380
- - Remove check requirements if perf-marks is running in a browser or not in Angular apps 🔥
381
-
382
- ### Added
383
-
384
- - 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 💪
385
- - Adding `.prettierrc` file with some of the code styling rules
386
-
387
- ## [2.4.3][] - 2020-08-13
388
-
389
- ### Fixed
390
-
391
- - Avoiding perf-marks call if running in Angular Universal applications
392
-
393
- ## [2.4.2][] - 2020-08-01
394
-
395
- ### Changed
396
-
397
- - Bumping `perf-marks` to latest version
398
-
399
- ## [2.4.1][] - 2020-08-01
400
-
401
- ### Changed
402
-
403
- - Bumping `perf-marks` to latest version
404
-
405
- ## [2.4.0][] - 2020-08-01
406
-
407
- ### Added
408
-
409
- - Adding User Timing API to track component render and content loader time
410
-
411
- ### Changed
412
-
413
- - Updating examples with new skeleton simulation
414
- - Adding Stackblitz link for user card skeleton loading demo
415
-
416
- ## [2.3.0][] - 2020-08-01
417
-
418
- ### Added
419
-
420
- - Adding User Timing API to track component render and content loader time
421
-
422
- ### Changed
423
-
424
- - Updating examples with new skeleton simulation
425
- - Adding Stackblitz link for user card skeleton loading demo
426
-
427
- ## [2.2.1][] - 2020-06-30
428
-
429
- ### Fixed
430
-
431
- - For compatibility with IE11 by using indexOf instead of `includes`
432
-
433
- ### Changed
434
-
435
- - Updating `npm run postinstall` command to follow the new rules from update.angular.io website
436
-
437
- ## [2.2.0][] - 2020-06-01
438
-
439
- ### Added
440
-
441
- - 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/
442
-
443
- ## [2.1.0][] - 2020-06-01
444
-
445
- ### Changed
446
-
447
- - Upgrading @angular/cli to version 9
448
- - 🎉 Decreasing bundle size to 1.17KB 🎉
449
-
450
- ## [2.0.0][] - 2020-05-15
451
-
452
- ### Changed
453
-
454
- - Upgrading NodeJS to v12.16.2
455
- - Updating documentation with `animation` attribute
456
-
457
- ### Added
458
-
459
- - Supporting for new animation `progress-dark` to enable users when using theme with darker color schema
460
- - Supporting for different animations 🎉
461
-
462
- 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:
463
-
464
- - `false`: it will disable the animation;
465
- - `progress` - _default_: it will use it `progress` as animation;
466
- - `pulse`: it will use `pulse` as animation;
467
-
468
- > `progress` is the default animation, used as the single one previously. If you don't pass the animation attribute, it defaults to `progress`.
469
-
470
- ```html
471
- <div class="item">
472
- <!-- Disables the animation -->
473
- <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
474
- <!-- Uses `progress` as animation -->
475
- <ngx-skeleton-loader animation="progress"></ngx-skeleton-loader>
476
- <ngx-skeleton-loader></ngx-skeleton-loader>
477
- <!-- Uses `pulse` as animation -->
478
- <ngx-skeleton-loader animation="pulse"></ngx-skeleton-loader>
479
- </div>
480
- ```
481
-
482
- - Supporting enabling/disabling animations.
483
- 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.
484
-
485
- > It works only to disable it. In case you want to keep enable it
486
-
487
- ```js
488
- <div class="item">
489
- <ngx-skeleton-loader animation="false"></ngx-skeleton-loader>
490
- </div>
491
- ```
492
-
493
- ## [1.2.7][] - 2020-04-13
494
-
495
- ### Changed
496
-
497
- - Decreasing bundle size after disable Ivy in production build
498
- - Adding description, keywords and github information on `package.json` files
499
-
500
- ## [1.2.6][] - 2020-02-26
501
-
502
- ### Fixed
503
-
504
- - Changing angular library configuration to prod and forcing it at publish time
505
-
506
- ## [1.2.5][] - 2020-02-25
507
-
508
- ### Fixed
509
-
510
- - Changing angular library configuration to prod
511
-
512
- ## [1.2.4][] - 2020-02-25
513
-
514
- ### Changed
515
-
516
- - Updating Github templates
517
- - Updating Angular CLI to v9
518
-
519
- ## [1.2.3][] - 2020-02-25
520
-
521
- ### Fixed
522
-
523
- - Solving peerDependency warning when installing library in an Angular 9 project
524
-
525
- ## [1.2.2][] - 2019-06-22
526
-
527
- ### Fixed
528
-
529
- - Fixing component dimensions via theme
530
-
531
- ## [1.2.1][] - 2019-06-08
532
-
533
- ### Changed
534
-
535
- - Updating Angular CLI to v8
536
-
537
- ## [1.2.0][] - 2019-04-19
538
-
539
- ### Changed
540
-
541
- - Updating Angular CLI to 7.3.8
542
-
543
- ## [1.1.2][] - 2019-01-07
544
-
545
- ### Added
546
-
547
- - Adding badges for stackblitz, bundlephobia and license
548
-
549
- ### Changed
550
-
551
- - Removing unnecessary CSS styles for skeleton
552
-
553
- ## [1.1.1][] - 2018-12-17
554
-
555
- ### Fixed
556
-
557
- - Fixing Stackblitz link demo link
558
-
559
- ## [1.1.0][] - 2018-12-17
560
-
561
- ### Added
562
-
563
- - Added GitHub urls into `package.json`
564
- - Added Circle CI integration
565
- - Added Coveralls integration
566
- - Added GitHub templates
567
- - Added `CODE_OF_CONDUCT.md` with the Code of conduct
568
- - Added unit tests for skeletons and demo components
569
-
570
- ### Changed
571
-
572
- - Decreased bundle size
573
- - New gif showing `ngx-skeleton-loader` in action
574
-
575
- ## [1.0.2][] - 2018-12-16
576
-
577
- ### Fixed
578
-
579
- - Added markdown files in dist folder in build time
580
-
581
- ## [1.0.1][] - 2018-12-16
582
-
583
- ### Fixed
584
-
585
- - Added markdown files in dist folder in build time
586
-
587
- ## [1.0.0][] - 2018-12-16
588
-
589
- ### Fixed
590
-
591
- - Fixed build script
592
-
593
- ## [0.0.1][] - 2018-12-16
594
-
595
- ### Added
596
-
597
- - Created `ngx-skeleton-loader`
598
- - Created test automation for the module
599
-
600
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v0.0.1...HEAD
601
- [0.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v0.0.1
602
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.0...HEAD
603
- [1.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.0
604
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.2...HEAD
605
- [1.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.1...v1.0.2
606
- [1.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.1
607
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.0.2...HEAD
608
- [1.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.0.2
609
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.0...HEAD
610
- [1.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.0
611
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.1...HEAD
612
- [1.1.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.1
613
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.4...HEAD
614
- [1.2.4]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.3...v1.2.4
615
- [1.2.3]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.2...v1.2.3
616
- [1.2.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.1...v1.2.2
617
- [1.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.0...v1.2.1
618
- [1.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.1.2...v1.2.0
619
- [1.1.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.1.2
620
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.5...HEAD
621
- [1.2.5]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.5
622
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.6...HEAD
623
- [1.2.6]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.6
624
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v1.2.7...HEAD
625
- [1.2.7]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v1.2.7
626
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.0.0...HEAD
627
- [2.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.0.0
628
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.1.0...HEAD
629
- [2.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.1.0
630
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.0...HEAD
631
- [2.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.0
632
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.1...HEAD
633
- [2.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.1
634
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.3.0...HEAD
635
- [2.3.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.3.0
636
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.0...HEAD
637
- [2.4.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.0
638
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.1...HEAD
639
- [2.4.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.1
640
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.2...HEAD
641
- [2.4.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.2
642
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.3...HEAD
643
- [2.4.3]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.3
644
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.4.4...HEAD
645
- [2.4.4]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.4
646
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.5.0...HEAD
647
- [2.5.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.5.0
648
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.0...HEAD
649
- [2.6.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.0
650
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.1...HEAD
651
- [2.6.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.1
652
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.2...HEAD
653
- [2.6.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.2
654
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.7.0...HEAD
655
- [2.7.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.7.0
656
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.8.0...HEAD
657
- [2.8.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.8.0
658
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.0...HEAD
659
- [2.9.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.0
660
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.1...HEAD
661
- [2.9.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.1
662
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.9.2...HEAD
663
- [2.9.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.9.2
664
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.10.0...HEAD
665
- [2.10.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.10.0
666
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.10.1...HEAD
667
- [2.10.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.10.1
668
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v4.0.0...HEAD
669
- [4.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v3.0.0...v4.0.0
670
- [3.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v3.0.0
671
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v5.0.0...HEAD
672
- [5.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v5.0.0
673
- [unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v6.0.0...HEAD
674
- [6.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v6.0.0
675
- [Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v12.0.0...HEAD
676
- [12.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.3.0...v12.0.0
677
- [11.3.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.2.1...v11.3.0
678
- [11.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.2.0...v11.2.1
679
- [11.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.1.0...v11.2.0
680
- [11.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v11.0.0...v11.1.0
681
- [11.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v10.0.0...v11.0.0
682
- [10.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v9.0.0...v10.0.0
683
- [9.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v9.0.0...v9.0.0
684
- [9.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.1.0...v9.0.0
685
- [8.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.2...v8.1.0
686
- [8.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.1...v8.0.2
687
- [8.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.2...v8.0.1
688
- [8.0.2]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.1...v8.0.2
689
- [8.0.1]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v8.0.0...v8.0.1
690
- [8.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v7.0.0...v8.0.0
691
- [7.0.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v7.0.0
@@ -1,77 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
74
-
75
- For answers to common questions about this code of conduct, see
76
- https://www.contributor-covenant.org/faq
77
-
package/CONTRIBUTING.md DELETED
@@ -1,34 +0,0 @@
1
- # How to start
2
-
3
- **Note** requires node v20.x.x or higher and npm 10.x.x.
4
-
5
- ```bash
6
- git clone https://github.com/willmendesneto/ngx-skeleton-loader.git
7
- cd ngx-skeleton-loader
8
- npm install
9
- npm start
10
- ```
11
-
12
- # Running test
13
-
14
- ```bash
15
- npm test
16
- ```
17
-
18
- ## Submitting Pull Requests
19
-
20
- **Please follow these basic steps to simplify pull request reviews - if you don't you'll probably just be asked to anyway.**
21
-
22
- - Please rebase your branch against the current master
23
- - Run `npm install` to make sure your development dependencies are up-to-date
24
- - Please ensure that the test suite passes **and** that code is lint free before submitting a PR by running:
25
- - `npm test`
26
- - If you've added new functionality, **please** include tests which validate its behaviour
27
- - Make reference to possible [issues](https://github.com/willmendesneto/ngx-skeleton-loader/issues) on PR comment
28
- - This module follows Angular commit message standard, so please make sure that you are following this standard.
29
-
30
- ## Submitting bug reports
31
-
32
- - Please detail the affected browser(s) and operating system(s)
33
- - Please be sure to state which version of node **and** npm you're using
34
- - Please use try to simulate your bug based on [the demo on Stackblitz](https://ngx-skeleton-loader-sample.stackblitz.io)!
@@ -1,102 +0,0 @@
1
- # Publishing a Hotfix for NGX Skeleton Loader
2
-
3
- > This guide outlines the steps to publish a hotfix for the NGX Skeleton Loader package for older versions - if necessary.
4
-
5
- A hotfix addresses critical issues that need immediate attention without waiting for the next scheduled release cycle.
6
-
7
- ## Prerequisites
8
-
9
- Please make sure you're using the correct NodeJS and NPM versions, as described below - and also in `.nvmrc` file.
10
-
11
- > **Note** requires node v20.x.x or higher and npm 10.x.x.
12
-
13
- ## Hotfix Process
14
-
15
- ### 1. Identify the Issue
16
-
17
- Clearly define the issue that needs a hotfix. Use the following steps:
18
-
19
- Open an issue on GitHub, detailing the problem and its urgency.
20
-
21
- Reference the issue number in all subsequent commits and documentation.
22
-
23
- ### 2. Create a Hotfix Branch
24
-
25
- Create a new branch based on the latest stable release tag.
26
-
27
- # Clone the package and fetch the latest tags and branches
28
-
29
- ```bash
30
- git clone https://github.com/willmendesneto/ngx-skeleton-loader.git
31
- cd ngx-skeleton-loader
32
- git fetch --all
33
- ```
34
-
35
- # Check out the latest stable release without the issue in specific
36
-
37
- ```bash
38
- # By running `git checkout <latest-stable-tag>`
39
- # you will be in a detached head state. E.G:
40
- git checkout v1.1.0
41
- ```
42
-
43
- # Create and switch to a hotfix branch
44
-
45
- ```bash
46
- # create new branch based on detached head state
47
- git checkout -b hotfix/<issue-key>
48
- ```
49
-
50
- ### 3. Implement the Fix
51
-
52
- Modify the necessary files in the codebase.
53
-
54
- Run tests to confirm the fix resolves the issue without introducing new bugs.
55
-
56
- ### 4. Update the Version Number
57
-
58
- Use npm to bump the patch version. The new version follows semantic versioning:
59
-
60
- ```bash
61
- npm version patch
62
- ```
63
-
64
- This updates the version in package.json and creates a Git tag for the new version.
65
-
66
- ### 5. Add a Changelog Entry
67
-
68
- Update the `CHANGELOG.md` file with details of the hotfix:
69
-
70
- ```bash
71
- ## [x.y.z] - YYYY-MM-DD
72
- ### Fixed
73
- - [#issue-number] Description of the hotfix.
74
- ```
75
-
76
- ### 6. Push Changes to the Repository
77
-
78
- Push the hotfix branch and the updated tag to the remote repository:
79
-
80
- ```bash
81
- git push origin hotfix/<issue-key>
82
- git push origin --tags
83
- ```
84
-
85
- ### 7. Create a Pull Request
86
-
87
- Open a pull request (PR) from the hotfix branch to the main branch.If it's not against main, please make sure you're pointing to the right branch - and add all relevant reviewers.
88
-
89
- Include a link to the issue being resolved and the changelog entry.
90
-
91
- ### 8. Merge and Publish the Package Fix
92
-
93
- Once the PR is reviewed and merged, the updated package will be published to npm by following the [Publish steps as described on `README.md` file.](https://github.com/willmendesneto/ngx-skeleton-loader?tab=readme-ov-file#publish)
94
-
95
-
96
- ## Notes
97
-
98
- Testing: Always run the full test suite before merging and publishing a hotfix.
99
-
100
- Documentation: Maintain up-to-date documentation for future contributors.
101
-
102
- By following these steps, you ensure a smooth and reliable hotfix process for the NGX Skeleton Loader package.