Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-skeleton-loader

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-skeleton-loader - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

bundles/ngx-skeleton-loader.umd.js

@@ -30,3 +30,3 @@ (function (global, factory) {

var allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
if (!allowedAnimations.includes(this.animation)) {
if (allowedAnimations.indexOf(this.animation) === -1) {
// Shows error message only in Development

@@ -33,0 +33,0 @@ if (core.isDevMode()) {

@@ -1,2 +0,2 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-skeleton-loader",["exports","@angular/core","@angular/common"],o):o((e=e||self)["ngx-skeleton-loader"]={},e.ng.core,e.ng.common)}(this,(function(e,o,r){"use strict";var n=function(){function e(){this.count=1,this.appearance="",this.animation="progress",this.theme={},this.items=[]}return e.prototype.ngOnInit=function(){this.items.length=this.count;var e=["progress","progress-dark","pulse","false"];e.includes(this.animation)||(o.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: "+e.join(", ")+'. Forcing default to "progress".'),this.animation="progress")},e.decorators=[{type:o.Component,args:[{selector:"ngx-skeleton-loader",template:'<span\n *ngFor="let item of items"\n class="loader"\n aria-busy="true"\n aria-valuemin="0"\n aria-valuemax="100"\n aria-valuetext="Loading..."\n role="progressbar"\n tabindex="0"\n [ngClass]="{\n circle: appearance === \'circle\',\n progress: animation === \'progress\',\n \'progress-dark\': animation === \'progress-dark\',\n pulse: animation === \'pulse\'\n }"\n [ngStyle]="theme"\n>\n</span>\n',styles:[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],e.propDecorators={count:[{type:o.Input}],appearance:[{type:o.Input}],animation:[{type:o.Input}],theme:[{type:o.Input}]},e}();var a=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{declarations:[n],imports:[r.CommonModule],exports:[n]}]}],e}();e.NgxSkeletonLoaderComponent=n,e.NgxSkeletonLoaderModule=a,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-skeleton-loader",["exports","@angular/core","@angular/common"],o):o((e=e||self)["ngx-skeleton-loader"]={},e.ng.core,e.ng.common)}(this,(function(e,o,r){"use strict";var n=function(){function e(){this.count=1,this.appearance="",this.animation="progress",this.theme={},this.items=[]}return e.prototype.ngOnInit=function(){this.items.length=this.count;var e=["progress","progress-dark","pulse","false"];-1===e.indexOf(this.animation)&&(o.isDevMode()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'animation' as: "+e.join(", ")+'. Forcing default to "progress".'),this.animation="progress")},e.decorators=[{type:o.Component,args:[{selector:"ngx-skeleton-loader",template:'<span\n *ngFor="let item of items"\n class="loader"\n aria-busy="true"\n aria-valuemin="0"\n aria-valuemax="100"\n aria-valuetext="Loading..."\n role="progressbar"\n tabindex="0"\n [ngClass]="{\n circle: appearance === \'circle\',\n progress: animation === \'progress\',\n \'progress-dark\': animation === \'progress-dark\',\n pulse: animation === \'pulse\'\n }"\n [ngStyle]="theme"\n>\n</span>\n',styles:[".loader{box-sizing:border-box;overflow:hidden;position:relative;background:no-repeat #eff1f6;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.loader:after,.loader:before{box-sizing:border-box}.loader.circle{width:40px;height:40px;margin:5px;border-radius:50%}.loader.progress,.loader.progress-dark{-webkit-animation:2s ease-in-out infinite progress;animation:2s ease-in-out infinite progress;background-size:200px 100%}.loader.progress{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.loader.progress-dark{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.loader.pulse{-webkit-animation:1.5s ease-in-out .5s infinite pulse;animation:1.5s ease-in-out .5s infinite pulse}@media (prefers-reduced-motion:reduce){.loader.progress,.loader.progress-dark,.loader.pulse{-webkit-animation:none;animation:none}.loader.progress,.loader.progress-dark{background-image:none}}@-webkit-keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@keyframes progress{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}"]}]}],e.propDecorators={count:[{type:o.Input}],appearance:[{type:o.Input}],animation:[{type:o.Input}],theme:[{type:o.Input}]},e}();var a=function(){function e(){}return e.decorators=[{type:o.NgModule,args:[{declarations:[n],imports:[r.CommonModule],exports:[n]}]}],e}();e.NgxSkeletonLoaderComponent=n,e.NgxSkeletonLoaderModule=a,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-skeleton-loader.umd.min.js.map

@@ -10,2 +10,12 @@ # Change Log

## [2.2.1][] - 2020-06-30
### Fixed
- For compatibility with IE11 by using indexOf instead of `includes`
### Updated
- Updating `npm run postinstall` command to follow the new rules from update.angular.io website
## [2.2.0][] - 2020-06-01

@@ -204,5 +214,7 @@

[2.1.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.1.0
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.0...HEAD
[2.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.0
[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.0...HEAD
[2.2.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.0
[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.2.1...HEAD
[2.2.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.2.1

@@ -22,3 +22,3 @@ /**

const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
if (!allowedAnimations.includes(this.animation)) {
if (allowedAnimations.indexOf(this.animation) === -1) {
// Shows error message only in Development

@@ -57,2 +57,2 @@ if (isDevMode()) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtc2tlbGV0b24tbG9hZGVyLyIsInNvdXJjZXMiOlsibGliL25neC1za2VsZXRvbi1sb2FkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBT3BFLE1BQU0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UnIHwgJ2ZhbHNlJyA9ICdwcm9ncmVzcyc7XG5cbiAgQElucHV0KCkgdGhlbWU6IHsgW2s6IHN0cmluZ106IHN0cmluZyB9ID0ge307XG5cbiAgaXRlbXM6IEFycmF5PGFueT4gPSBbXTtcblxuICBuZ09uSW5pdCgpIHtcbiAgICB0aGlzLml0ZW1zLmxlbmd0aCA9IHRoaXMuY291bnQ7XG4gICAgY29uc3QgYWxsb3dlZEFuaW1hdGlvbnMgPSBbJ3Byb2dyZXNzJywgJ3Byb2dyZXNzLWRhcmsnLCAncHVsc2UnLCAnZmFsc2UnXTtcbiAgICBpZiAoYWxsb3dlZEFuaW1hdGlvbnMuaW5kZXhPZih0aGlzLmFuaW1hdGlvbikgPT09IC0xKSB7XG4gICAgICAvLyBTaG93cyBlcnJvciBtZXNzYWdlIG9ubHkgaW4gRGV2ZWxvcG1lbnRcbiAgICAgIGlmIChpc0Rldk1vZGUoKSkge1xuICAgICAgICBjb25zb2xlLmVycm9yKFxuICAgICAgICAgIGBcXGBOZ3hTa2VsZXRvbkxvYWRlckNvbXBvbmVudFxcYCBuZWVkIHRvIHJlY2VpdmUgJ2FuaW1hdGlvbicgYXM6ICR7YWxsb3dlZEFuaW1hdGlvbnMuam9pbihcbiAgICAgICAgICAgICcsICdcbiAgICAgICAgICApfS4gRm9yY2luZyBkZWZhdWx0IHRvIFwicHJvZ3Jlc3NcIi5gXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICB0aGlzLmFuaW1hdGlvbiA9ICdwcm9ncmVzcyc7XG4gICAgfVxuICB9XG59XG4iXX0=

@@ -25,3 +25,3 @@ /**

var allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
if (!allowedAnimations.includes(this.animation)) {
if (allowedAnimations.indexOf(this.animation) === -1) {
// Shows error message only in Development

@@ -62,2 +62,2 @@ if (isDevMode()) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXNrZWxldG9uLWxvYW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NpbmcgZGVmYXVsdCB0byBcInByb2dyZXNzXCIuYFxuICAgICAgICApO1xuICAgICAgfVxuICAgICAgdGhpcy5hbmltYXRpb24gPSAncHJvZ3Jlc3MnO1xuICAgIH1cbiAgfVxufVxuIl19

@@ -24,3 +24,3 @@ import { isDevMode, Component, Input, NgModule } from '@angular/core';

const allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
if (!allowedAnimations.includes(this.animation)) {
if (allowedAnimations.indexOf(this.animation) === -1) {
// Shows error message only in Development

@@ -27,0 +27,0 @@ if (isDevMode()) {

@@ -27,3 +27,3 @@ import { isDevMode, Component, Input, NgModule } from '@angular/core';

var allowedAnimations = ['progress', 'progress-dark', 'pulse', 'false'];
if (!allowedAnimations.includes(this.animation)) {
if (allowedAnimations.indexOf(this.animation) === -1) {
// Shows error message only in Development

@@ -30,0 +30,0 @@ if (isDevMode()) {

{
"name": "ngx-skeleton-loader",
"description": "Make beautiful, animated loading skeletons that automatically adapt to your Angular apps",
"version": "2.2.0",
"version": "2.2.1",
"peerDependencies": {

@@ -6,0 +6,0 @@ "@angular/common": ">=8.0.0",

@@ -137,2 +137,55 @@ # NGX Skeleton loader

### ⚠️ This is here only as a documentation, but it's not encouraged to be used. Please consider use it with caution ⚠️
Also, you can use CSS to add theme styles into your component. However, there are some implications:
- 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)**
- 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**.
As an example, your Component file is like this
```typescript
import { Component } from "@angular/core";
@Component({
selector: "my-ngx-skeleton-loader-with-theming",
templateUrl: "./my-ngx-skeleton-loader-with-theming.component.html",
styleUrls: ["./my-ngx-skeleton-loader-with-theming.component.css"],
})
export class MyNGXSkeletonLoaderWithThemingComponent {
/* ... code goes here*/
}
```
And your componennt HTML code is
```html
<!--
file: my-ngx-skeleton-loader-with-theming.component.html
As an example, it's not using themes via [theme] attributes.
-->
<ngx-skeleton-loader
count="5"
animation="pulse"
></ngx-skeleton-loader>
```
You can apply theme changes in our stylesheet. At the end it will be
```css
/* file: `my-ngx-skeleton-loader-with-theming.component.css`
*
* You can find more details about `:host` at
* Angular Component Style Docs https://angular.io/guide/component-styles#host
*/
:host >>> ngx-skeleton-loader .loader {
border-radius: 5px;
height: 50px;
background-color: #992929;
border: 1px solid white;
}
```
> 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)

@@ -139,0 +192,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc