ng-auto-animate 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ # ng-auto-animate
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test ng-auto-animate` to execute the unit tests.
@@ -0,0 +1,2 @@
1
+ export * from './lib/ng-auto-animate.directive';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL25nLWF1dG8tYW5pbWF0ZS9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL25nLWF1dG8tYW5pbWF0ZS5kaXJlY3RpdmUnO1xuIl19
@@ -0,0 +1,33 @@
1
+ import { Directive, ElementRef, Input, inject } from '@angular/core';
2
+ import autoAnimate from '@formkit/auto-animate';
3
+ import * as i0 from "@angular/core";
4
+ class NgAutoAnimateDirective {
5
+ constructor() {
6
+ this.el = inject(ElementRef);
7
+ this._options = {};
8
+ }
9
+ set options(_options) {
10
+ this._options = typeof _options === 'string' ? {} : _options;
11
+ }
12
+ get options() {
13
+ return this._options;
14
+ }
15
+ ngAfterViewInit() {
16
+ this.options = typeof this.options === 'string' ? {} : this.options;
17
+ autoAnimate(this.el.nativeElement, { ...this.options });
18
+ }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NgAutoAnimateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.6", type: NgAutoAnimateDirective, isStandalone: true, selector: "[auto-animate]", inputs: { options: ["auto-animate", "options"] }, ngImport: i0 }); }
21
+ }
22
+ export { NgAutoAnimateDirective };
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NgAutoAnimateDirective, decorators: [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[auto-animate]',
27
+ standalone: true,
28
+ }]
29
+ }], propDecorators: { options: [{
30
+ type: Input,
31
+ args: ['auto-animate']
32
+ }] } });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctYXV0by1hbmltYXRlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvbmctYXV0by1hbmltYXRlL3NyYy9saWIvbmctYXV0by1hbmltYXRlLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLFNBQVMsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRixPQUFPLFdBQW1DLE1BQU0sdUJBQXVCLENBQUM7O0FBR3hFLE1BSWEsc0JBQXNCO0lBSm5DO1FBS1UsT0FBRSxHQUFHLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQztRQVN4QixhQUFRLEdBQWdDLEVBQUUsQ0FBQztLQU1wRDtJQWJDLElBQ0ksT0FBTyxDQUFDLFFBQTBDO1FBQ3BELElBQUksQ0FBQyxRQUFRLEdBQUcsT0FBTyxRQUFRLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQztJQUMvRCxDQUFDO0lBQ0QsSUFBSSxPQUFPO1FBQ1QsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQ3ZC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XV0b0FuaW1hdGVPcHRpb25zPiB8ICcnKSB7XG4gICAgdGhpcy5fb3B0aW9ucyA9IHR5cGVvZiBfb3B0aW9ucyA9PT0gJ3N0cmluZycgPyB7fSA6IF9vcHRpb25zO1xuICB9XG4gIGdldCBvcHRpb25zKCkge1xuICAgIHJldHVybiB0aGlzLl9vcHRpb25zO1xuICB9XG4gIHByaXZhdGUgX29wdGlvbnM6IFBhcnRpYWw8QXV0b0FuaW1hdGVPcHRpb25zPiA9IHt9O1xuXG4gIG5nQWZ0ZXJWaWV3SW5pdCgpOiB2b2lkIHtcbiAgICB0aGlzLm9wdGlvbnMgPSB0eXBlb2YgdGhpcy5vcHRpb25zID09PSAnc3RyaW5nJyA/IHt9IDogdGhpcy5vcHRpb25zO1xuICAgIGF1dG9BbmltYXRlKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgeyAuLi50aGlzLm9wdGlvbnMgfSk7XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctYXV0by1hbmltYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGlicy9uZy1hdXRvLWFuaW1hdGUvc3JjL25nLWF1dG8tYW5pbWF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
@@ -0,0 +1,39 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, ElementRef, Directive, Input } from '@angular/core';
3
+ import autoAnimate from '@formkit/auto-animate';
4
+
5
+ class NgAutoAnimateDirective {
6
+ constructor() {
7
+ this.el = inject(ElementRef);
8
+ this._options = {};
9
+ }
10
+ set options(_options) {
11
+ this._options = typeof _options === 'string' ? {} : _options;
12
+ }
13
+ get options() {
14
+ return this._options;
15
+ }
16
+ ngAfterViewInit() {
17
+ this.options = typeof this.options === 'string' ? {} : this.options;
18
+ autoAnimate(this.el.nativeElement, { ...this.options });
19
+ }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NgAutoAnimateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.6", type: NgAutoAnimateDirective, isStandalone: true, selector: "[auto-animate]", inputs: { options: ["auto-animate", "options"] }, ngImport: i0 }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NgAutoAnimateDirective, decorators: [{
24
+ type: Directive,
25
+ args: [{
26
+ selector: '[auto-animate]',
27
+ standalone: true,
28
+ }]
29
+ }], propDecorators: { options: [{
30
+ type: Input,
31
+ args: ['auto-animate']
32
+ }] } });
33
+
34
+ /**
35
+ * Generated bundle index. Do not edit.
36
+ */
37
+
38
+ export { NgAutoAnimateDirective };
39
+ //# sourceMappingURL=ng-auto-animate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-auto-animate.mjs","sources":["../../../../libs/ng-auto-animate/src/lib/ng-auto-animate.directive.ts","../../../../libs/ng-auto-animate/src/ng-auto-animate.ts"],"sourcesContent":["import { AfterViewInit, Directive, ElementRef, Input, inject } from '@angular/core';\nimport autoAnimate, { AutoAnimateOptions } from '@formkit/auto-animate';\n\n\n@Directive({\n selector: '[auto-animate]',\n standalone: true,\n})\nexport class NgAutoAnimateDirective implements AfterViewInit {\n private el = inject(ElementRef);\n\n @Input('auto-animate')\n set options(_options: Partial<AutoAnimateOptions> | '') {\n this._options = typeof _options === 'string' ? {} : _options;\n }\n get options() {\n return this._options;\n }\n private _options: Partial<AutoAnimateOptions> = {};\n\n ngAfterViewInit(): void {\n this.options = typeof this.options === 'string' ? {} : this.options;\n autoAnimate(this.el.nativeElement, { ...this.options });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MAIa,sBAAsB,CAAA;AAJnC,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;QASxB,IAAQ,CAAA,QAAA,GAAgC,EAAE,CAAC;AAMpD,KAAA;IAbC,IACI,OAAO,CAAC,QAA0C,EAAA;AACpD,QAAA,IAAI,CAAC,QAAQ,GAAG,OAAO,QAAQ,KAAK,QAAQ,GAAG,EAAE,GAAG,QAAQ,CAAC;KAC9D;AACD,IAAA,IAAI,OAAO,GAAA;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;KACtB;IAGD,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;AACpE,QAAA,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KACzD;8GAfU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;8BAKK,OAAO,EAAA,CAAA;sBADV,KAAK;uBAAC,cAAc,CAAA;;;ACXvB;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/ng-auto-animate.directive';
@@ -0,0 +1,12 @@
1
+ import { AfterViewInit } from '@angular/core';
2
+ import { AutoAnimateOptions } from '@formkit/auto-animate';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgAutoAnimateDirective implements AfterViewInit {
5
+ private el;
6
+ set options(_options: Partial<AutoAnimateOptions> | '');
7
+ get options(): Partial<AutoAnimateOptions> | '';
8
+ private _options;
9
+ ngAfterViewInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgAutoAnimateDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgAutoAnimateDirective, "[auto-animate]", never, { "options": { "alias": "auto-animate"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "ng-auto-animate",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^16.0.0",
6
+ "@angular/core": "^16.0.0",
7
+ "@formkit/auto-animate": "^0.7.0"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "^2.3.0"
11
+ },
12
+ "sideEffects": false,
13
+ "module": "fesm2022/ng-auto-animate.mjs",
14
+ "typings": "index.d.ts",
15
+ "exports": {
16
+ "./package.json": {
17
+ "default": "./package.json"
18
+ },
19
+ ".": {
20
+ "types": "./index.d.ts",
21
+ "esm2022": "./esm2022/ng-auto-animate.mjs",
22
+ "esm": "./esm2022/ng-auto-animate.mjs",
23
+ "default": "./fesm2022/ng-auto-animate.mjs"
24
+ }
25
+ }
26
+ }