ngx-repeat 3.0.1 → 4.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 +3 -2
- package/fesm2022/ngx-repeat.mjs +3 -3
- package/index.d.ts +23 -3
- package/package.json +3 -4
- package/lib/ngx-repeat.directive.d.ts +0 -22
- package/public-api.d.ts +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
> Angular directive for repeating HTML element by count
|
|
16
16
|
|
|
17
|
-
> ✓ _Angular
|
|
17
|
+
> ✓ _Angular 20 compatible_
|
|
18
18
|
|
|
19
19
|
Here's the [demo](http://celtian.github.io/ngx-repeat/) or [stackblitz live preview](https://stackblitz.com/edit/ngx-repeat) or [codesandbox live preview](https://codesandbox.io/s/ngx-repeat-bew8f)
|
|
20
20
|
|
|
@@ -85,7 +85,8 @@ import { NgxRepeatDirective } from 'ngx-repeat';
|
|
|
85
85
|
|
|
86
86
|
| Angular | ngx-repeat | Install |
|
|
87
87
|
| --------- | ---------- | ----------------------- |
|
|
88
|
-
| >=
|
|
88
|
+
| >= 20 | 4.x | `yarn add ngx-repeat` |
|
|
89
|
+
| >= 19 | 3.x | `yarn add ngx-repeat@3` |
|
|
89
90
|
| >= 14 | 2.x | `yarn add ngx-repeat@2` |
|
|
90
91
|
| >= 12 | 1.x | `yarn add ngx-repeat@1` |
|
|
91
92
|
| >= 5 < 13 | 0.x | `yarn add ngx-repeat@0` |
|
package/fesm2022/ngx-repeat.mjs
CHANGED
|
@@ -44,10 +44,10 @@ class NgxRepeatDirective {
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
48
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxRepeatDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
48
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.0", type: NgxRepeatDirective, isStandalone: true, selector: "[ngxRepeat]", inputs: { count: { classPropertyName: "count", publicName: "ngxRepeat", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
49
49
|
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0", ngImport: i0, type: NgxRepeatDirective, decorators: [{
|
|
51
51
|
type: Directive,
|
|
52
52
|
args: [{ selector: '[ngxRepeat]' }]
|
|
53
53
|
}], ctorParameters: () => [] });
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
4
|
+
* @publicApi
|
|
3
5
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
declare class RepeatDirectiveContext {
|
|
7
|
+
$implicit: number;
|
|
8
|
+
count: number;
|
|
9
|
+
constructor($implicit: number, count: number);
|
|
10
|
+
get index(): number;
|
|
11
|
+
get first(): boolean;
|
|
12
|
+
get last(): boolean;
|
|
13
|
+
get even(): boolean;
|
|
14
|
+
get odd(): boolean;
|
|
15
|
+
}
|
|
16
|
+
declare class NgxRepeatDirective {
|
|
17
|
+
private readonly templateRef;
|
|
18
|
+
private readonly viewContainer;
|
|
19
|
+
readonly count: i0.InputSignal<number>;
|
|
20
|
+
constructor();
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxRepeatDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxRepeatDirective, "[ngxRepeat]", never, { "count": { "alias": "ngxRepeat"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { NgxRepeatDirective, RepeatDirectiveContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-repeat",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Dominik Hladík",
|
|
6
6
|
"email": "dominik.hladik@seznam.cz",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"description": "Angular directive for repeating HTML element by count",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@angular/
|
|
14
|
-
"@angular/core": ">=19"
|
|
13
|
+
"@angular/core": ">=20"
|
|
15
14
|
},
|
|
16
15
|
"publishConfig": {
|
|
17
16
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +30,7 @@
|
|
|
31
30
|
"repeat"
|
|
32
31
|
],
|
|
33
32
|
"engines": {
|
|
34
|
-
"node": ">=
|
|
33
|
+
"node": ">=20"
|
|
35
34
|
},
|
|
36
35
|
"module": "fesm2022/ngx-repeat.mjs",
|
|
37
36
|
"typings": "index.d.ts",
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* @publicApi
|
|
4
|
-
*/
|
|
5
|
-
export declare class RepeatDirectiveContext {
|
|
6
|
-
$implicit: number;
|
|
7
|
-
count: number;
|
|
8
|
-
constructor($implicit: number, count: number);
|
|
9
|
-
get index(): number;
|
|
10
|
-
get first(): boolean;
|
|
11
|
-
get last(): boolean;
|
|
12
|
-
get even(): boolean;
|
|
13
|
-
get odd(): boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class NgxRepeatDirective {
|
|
16
|
-
private readonly templateRef;
|
|
17
|
-
private readonly viewContainer;
|
|
18
|
-
readonly count: import("@angular/core").InputSignal<number>;
|
|
19
|
-
constructor();
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxRepeatDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxRepeatDirective, "[ngxRepeat]", never, { "count": { "alias": "ngxRepeat"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
22
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/ngx-repeat.directive';
|