@skeletonizer/angular 2.0.104 → 2.1.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/dist/skeletonizer/fesm2022/skeletonizer-angular.mjs +6 -6
- package/dist/skeletonizer/index.d.ts +17 -5
- package/package.json +27 -27
- package/dist/skeletonizer/lib/skeletonize.directive.d.ts +0 -11
- package/dist/skeletonizer/lib/skeletonizer.skeleton.component.d.ts +0 -14
- package/dist/skeletonizer/public-api.d.ts +0 -1
|
@@ -10,10 +10,10 @@ class SkeletonizeDirective {
|
|
|
10
10
|
ngAfterViewInit() {
|
|
11
11
|
SkeletonDirective.skeletonizeProjectedTemplate(this.el.nativeElement, this.colorSchema);
|
|
12
12
|
}
|
|
13
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: SkeletonizeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
14
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.2", type: SkeletonizeDirective, isStandalone: true, selector: "[skeletonize]", inputs: { colorSchema: ["skeletonize", "colorSchema"] }, ngImport: i0 }); }
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: SkeletonizeDirective, decorators: [{
|
|
17
17
|
type: Directive,
|
|
18
18
|
args: [{
|
|
19
19
|
selector: '[skeletonize]',
|
|
@@ -29,10 +29,10 @@ class SkeletonizerSkeletonComponent extends SkeletonAdapterComponent {
|
|
|
29
29
|
this.config = config;
|
|
30
30
|
this.setupModels();
|
|
31
31
|
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: SkeletonizerSkeletonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.2", type: SkeletonizerSkeletonComponent, isStandalone: true, selector: "skeletonizer-skeleton", inputs: { showSkeleton: "showSkeleton", scope: "scope", colorSchema: "colorSchema", configInput: ["config", "configInput"] }, queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (showSkeleton) {\n @for (model of viewModels; track model.uuid) {\n <div [skeletonize]=\"colorSchema\">\n <ng-container *ngTemplateOutlet=\"templateRef; context: { $implicit: model }\"></ng-container>\n </div>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"templateRef; context: { $implicit: scope }\"></ng-container>\n}\n", styles: ["[data-skeletonizer=wrapper-element]{--skeletonizer-text-background: rgba(0, 0, 0, .2);display:contents;filter:grayscale(100%);pointer-events:none}[data-skeletonizer=wrapper-element] *{pointer-events:none}[data-skeletonizer=wrapper-element] [data-skeletonizer=text]{animation:text-animation 2s infinite ease-in-out;background:var(--skeletonizer-primary-color);border-radius:50px;color:#0000!important}@keyframes text-animation{0%{background:var(--skeletonizer-primary-color)}50%{background:var(--skeletonizer-secondary-color)}to{background:var(--skeletonizer-primary-color)}}skeletonizer-skeleton{display:contents}\n"], dependencies: [{ kind: "directive", type: SkeletonizeDirective, selector: "[skeletonize]", inputs: ["skeletonize"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImport: i0, type: SkeletonizerSkeletonComponent, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{ selector: 'skeletonizer-skeleton', encapsulation: ViewEncapsulation.None, standalone: true, imports: [
|
|
38
38
|
SkeletonizeDirective,
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import { SkeletonAdapterComponent, Schema, ISkeletonizerColorSchema, TSchemaConfig } from '@skeletonizer/utils';
|
|
4
|
+
|
|
5
|
+
declare class SkeletonizerSkeletonComponent<T extends object, Scope extends T> extends SkeletonAdapterComponent<T> {
|
|
6
|
+
readonly templateRef: TemplateRef<{
|
|
7
|
+
$implicit: Schema<T> | Scope;
|
|
8
|
+
}>;
|
|
9
|
+
showSkeleton: boolean;
|
|
10
|
+
scope: Scope;
|
|
11
|
+
colorSchema?: ISkeletonizerColorSchema;
|
|
12
|
+
set configInput(config: TSchemaConfig<T>);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonizerSkeletonComponent<any, any>, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonizerSkeletonComponent<any, any>, "skeletonizer-skeleton", never, { "showSkeleton": { "alias": "showSkeleton"; "required": true; }; "scope": { "alias": "scope"; "required": true; }; "colorSchema": { "alias": "colorSchema"; "required": false; }; "configInput": { "alias": "config"; "required": true; }; }, {}, ["templateRef"], never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { SkeletonizerSkeletonComponent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonizer/angular",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "The way to skeletonize your Angular components",
|
|
5
5
|
"author": "Luka Varga",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,42 +54,42 @@
|
|
|
54
54
|
"**/*.{ts,js}": "eslint --fix"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@angular/animations": "^
|
|
58
|
-
"@angular/common": "^
|
|
59
|
-
"@angular/compiler": "^
|
|
60
|
-
"@angular/core": "^
|
|
61
|
-
"@angular/forms": "^
|
|
62
|
-
"@angular/platform-browser": "^
|
|
63
|
-
"@angular/platform-browser-dynamic": "^
|
|
64
|
-
"@angular/router": "^
|
|
65
|
-
"@skeletonizer/utils": "^2.0
|
|
57
|
+
"@angular/animations": "^20.0.1",
|
|
58
|
+
"@angular/common": "^20.0.1",
|
|
59
|
+
"@angular/compiler": "^20.0.1",
|
|
60
|
+
"@angular/core": "^20.0.1",
|
|
61
|
+
"@angular/forms": "^20.0.1",
|
|
62
|
+
"@angular/platform-browser": "^20.0.1",
|
|
63
|
+
"@angular/platform-browser-dynamic": "^20.0.1",
|
|
64
|
+
"@angular/router": "^20.0.1",
|
|
65
|
+
"@skeletonizer/utils": "^2.1.0",
|
|
66
66
|
"rxjs": "~7.8.1",
|
|
67
67
|
"tslib": "^2.8.1",
|
|
68
68
|
"zone.js": "~0.15.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@angular-devkit/build-angular": "^
|
|
72
|
-
"@angular-eslint/builder": "19.
|
|
73
|
-
"@angular-eslint/eslint-plugin": "19.
|
|
74
|
-
"@angular-eslint/eslint-plugin-template": "19.
|
|
75
|
-
"@angular-eslint/schematics": "19.
|
|
76
|
-
"@angular-eslint/template-parser": "19.
|
|
77
|
-
"@angular/cli": "~
|
|
78
|
-
"@angular/compiler-cli": "^
|
|
79
|
-
"@skeletonizer/utils": "^2.0
|
|
80
|
-
"@types/jasmine": "~5.1.
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
82
|
-
"@typescript-eslint/parser": "^8.
|
|
83
|
-
"angular-eslint": "^19.
|
|
84
|
-
"eslint": "^9.
|
|
85
|
-
"jasmine-core": "~5.
|
|
71
|
+
"@angular-devkit/build-angular": "^20.0.1",
|
|
72
|
+
"@angular-eslint/builder": "19.7.1",
|
|
73
|
+
"@angular-eslint/eslint-plugin": "19.7.1",
|
|
74
|
+
"@angular-eslint/eslint-plugin-template": "19.7.1",
|
|
75
|
+
"@angular-eslint/schematics": "19.7.1",
|
|
76
|
+
"@angular-eslint/template-parser": "19.7.1",
|
|
77
|
+
"@angular/cli": "~20.0.1",
|
|
78
|
+
"@angular/compiler-cli": "^20.0.1",
|
|
79
|
+
"@skeletonizer/utils": "^2.1.0",
|
|
80
|
+
"@types/jasmine": "~5.1.8",
|
|
81
|
+
"@typescript-eslint/eslint-plugin": "^8.33.1",
|
|
82
|
+
"@typescript-eslint/parser": "^8.33.1",
|
|
83
|
+
"angular-eslint": "^19.7.1",
|
|
84
|
+
"eslint": "^9.28.0",
|
|
85
|
+
"jasmine-core": "~5.7.1",
|
|
86
86
|
"karma": "~6.4.4",
|
|
87
87
|
"karma-chrome-launcher": "~3.2.0",
|
|
88
88
|
"karma-coverage": "~2.2.1",
|
|
89
89
|
"karma-jasmine": "~5.1.0",
|
|
90
90
|
"karma-jasmine-html-reporter": "~2.1.0",
|
|
91
|
-
"ng-packagr": "^
|
|
91
|
+
"ng-packagr": "^20.0.0",
|
|
92
92
|
"typescript": "~5.8.3"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "878a6370fb5103ae4ed12a0dc7ceeef24c867130"
|
|
95
95
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
-
import { ISkeletonizerColorSchema } from '@skeletonizer/utils';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SkeletonizeDirective implements AfterViewInit {
|
|
5
|
-
private readonly el;
|
|
6
|
-
colorSchema: ISkeletonizerColorSchema | undefined;
|
|
7
|
-
constructor(el: ElementRef);
|
|
8
|
-
ngAfterViewInit(): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonizeDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonizeDirective, "[skeletonize]", never, { "colorSchema": { "alias": "skeletonize"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { ISkeletonizerColorSchema, Schema, SkeletonAdapterComponent, TSchemaConfig } from '@skeletonizer/utils';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SkeletonizerSkeletonComponent<T extends object, Scope extends T> extends SkeletonAdapterComponent<T> {
|
|
5
|
-
readonly templateRef: TemplateRef<{
|
|
6
|
-
$implicit: Schema<T> | Scope;
|
|
7
|
-
}>;
|
|
8
|
-
showSkeleton: boolean;
|
|
9
|
-
scope: Scope;
|
|
10
|
-
colorSchema?: ISkeletonizerColorSchema;
|
|
11
|
-
set configInput(config: TSchemaConfig<T>);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonizerSkeletonComponent<any, any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonizerSkeletonComponent<any, any>, "skeletonizer-skeleton", never, { "showSkeleton": { "alias": "showSkeleton"; "required": true; }; "scope": { "alias": "scope"; "required": true; }; "colorSchema": { "alias": "colorSchema"; "required": false; }; "configInput": { "alias": "config"; "required": true; }; }, {}, ["templateRef"], never, true, never>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/skeletonizer.skeleton.component';
|