-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Angular to version 19 (#520)
Fixes #519 * remove no longer needed `standalone: true` flags * remove deprecated `allowSignalWrites: true` flag
- Loading branch information
Showing
18 changed files
with
5,150 additions
and
6,295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ | |
[![npm version](https://badge.fury.io/js/%40ngu%2Fcarousel.svg)](https://badge.fury.io/js/%40ngu%2Fcarousel) | ||
|
||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
|
||
[![All Contributors](https://img.shields.io/badge/all_contributors-18-orange.svg?style=flat-square)](#contributors-) | ||
|
||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
|
||
Angular Universal carousel | ||
|
@@ -22,19 +24,20 @@ Demo available [Here](https://ngu-carousel.netlify.app) | |
|
||
`ngu-carousel` supports touch actions and requires `hammerjs` to be installed before the `ngu-carousel` is installed. | ||
|
||
| Angular Version | ngu-carousel Version | | ||
| ------------------------ | -------------------------------------------- | | ||
| Angular >= 18 | `npm i --save @ngu/carousel@18` | | ||
| Angular >= 17 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 16 standalone | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 16 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 15 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 14 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 13 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 12 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 10 | `npm i --save @ngu/[email protected]` | | ||
| Angular = 9 | `npm i --save @ngu/[email protected]` | | ||
| Angular < 9 | `npm i --save @ngu/[email protected]` | | ||
| Angular Version | ngu-carousel Version | | ||
| ------------------------ | ---------------------------------- | | ||
| Angular >= 19 | `npm i --save @ngu/carousel@19` | | ||
| Angular >= 18 | `npm i --save @ngu/carousel@18` | | ||
| Angular >= 17 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 16 standalone | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 16 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 15 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 14 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 13 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 12 | `npm i --save @ngu/[email protected]` | | ||
| Angular >= 10 | `npm i --save @ngu/[email protected]` | | ||
| Angular = 9 | `npm i --save @ngu/[email protected]` | | ||
| Angular < 9 | `npm i --save @ngu/[email protected]` | | ||
|
||
## Usage | ||
|
||
|
@@ -62,7 +65,7 @@ import { | |
}) | ||
export class AppModule {} | ||
|
||
OR | ||
OR; | ||
|
||
@Component({ | ||
imports: [ | ||
|
@@ -252,24 +255,24 @@ export type Custom = 'banner'; | |
export type Animate = 'lazy'; | ||
``` | ||
|
||
| Command | Type | Required | Description | | ||
| ------------------------- | ------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `grid` | Object | Yes | **xs** - mobile, **sm** - tablet, **md** - desktop, **lg** - large desktops, **xl** - extra large desktops, **all** - fixed width (When you use **all** make others 0 and vice versa) | | ||
| `gridBreakpoints` | Object | optional | Determines the browser width in pixels that the grid displays the intended number of tiles.<br/><br/> default: `{sm: 768, md: 992, lg: 1200, xl: 1200}` | | ||
| `slide` | number | optional | It is used to slide the number items on click | | ||
| `speed` | milliseconds | optional | It is used for time taken to slide the number items | | ||
| `interval` | milliseconds | optional | It is used to make the carousel auto slide with given value. interval defines the interval between slides | | ||
| `load` | number | optional | It is used to load the items similar to pagination. The carousel will trigger the carouselLoad function to load another set of items. It will help you to improve the performance of the app.**`(carouselLoad)="myfunc($event)"`** | | ||
| `point.visible` | boolean | optional | It is used to indicate no. of slides and also shows the current active slide. | | ||
| `point.hideOnSingleSlide` | boolean | optional | It is used to hide the point indicator when slide is less than one. | | ||
| `touch` | boolean | optional | It is used to active touch support to the carousel. | | ||
| `easing` | string | optional | It is used to define the easing style of the carousel. Only define the ease name without any timing like `ease`,`ease-in` | | ||
| `loop` | boolean | optional | It is used to loop the `ngu-item ngu-tile`. It must be true for `interval` | | ||
| `animation` | string | optional | It is used to animate the sliding items. currently it only supports `lazy`. more coming soon and also with custom CSS animation option | | ||
| `custom` | string | optional | It is you to define the purpose of the carousel. Currently, it only supports `banner`. | | ||
| `RTL` | boolean | optional | This option enables the `rtl` direction and acts as rtl. By default it is set to `ltr` | | ||
| `vertical.enabled` | boolean | optional | This option enable the `vertical` direction | | ||
| `vertical.height` | number | optional | This option is used to set the height of the carousel | | ||
| Command | Type | Required | Description | | ||
| ------------------------- | ------------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| `grid` | Object | Yes | **xs** - mobile, **sm** - tablet, **md** - desktop, **lg** - large desktops, **xl** - extra large desktops, **all** - fixed width (When you use **all** make others 0 and vice versa) | | ||
| `gridBreakpoints` | Object | optional | Determines the browser width in pixels that the grid displays the intended number of tiles.<br/><br/> default: `{sm: 768, md: 992, lg: 1200, xl: 1200}` | | ||
| `slide` | number | optional | It is used to slide the number items on click | | ||
| `speed` | milliseconds | optional | It is used for time taken to slide the number items | | ||
| `interval` | milliseconds | optional | It is used to make the carousel auto slide with given value. interval defines the interval between slides | | ||
| `load` | number | optional | It is used to load the items similar to pagination. The carousel will trigger the carouselLoad function to load another set of items. It will help you to improve the performance of the app.**`(carouselLoad)="myfunc($event)"`** | | ||
| `point.visible` | boolean | optional | It is used to indicate no. of slides and also shows the current active slide. | | ||
| `point.hideOnSingleSlide` | boolean | optional | It is used to hide the point indicator when slide is less than one. | | ||
| `touch` | boolean | optional | It is used to active touch support to the carousel. | | ||
| `easing` | string | optional | It is used to define the easing style of the carousel. Only define the ease name without any timing like `ease`,`ease-in` | | ||
| `loop` | boolean | optional | It is used to loop the `ngu-item ngu-tile`. It must be true for `interval` | | ||
| `animation` | string | optional | It is used to animate the sliding items. currently it only supports `lazy`. more coming soon and also with custom CSS animation option | | ||
| `custom` | string | optional | It is you to define the purpose of the carousel. Currently, it only supports `banner`. | | ||
| `RTL` | boolean | optional | This option enables the `rtl` direction and acts as rtl. By default it is set to `ltr` | | ||
| `vertical.enabled` | boolean | optional | This option enable the `vertical` direction | | ||
| `vertical.height` | number | optional | This option is used to set the height of the carousel | | ||
|
||
### Custom CSS for Point | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
apps/ngu-carousel-example/src/app/getting-started/getting-started.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.