-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v18' of https://github.com/primefaces/primeng into v18
- Loading branch information
Showing
468 changed files
with
4,060 additions
and
496 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Code } from '@/domain/code'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'dynamic-doc', | ||
template: ` | ||
<app-docsectiontext> | ||
<p>Inject the <i>PrimeNG</i> to your application to update the initial configuration at runtime.</p> | ||
</app-docsectiontext> | ||
<app-code [code]="code" [hideToggleCode]="true"></app-code> | ||
` | ||
}) | ||
export class DynamicDoc { | ||
code: Code = { | ||
typescript: `import { Component, OnInit } from '@angular/core'; | ||
import { PrimeNG } from 'primeng/config'; | ||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html' | ||
}) | ||
export class AppComponent implements OnInit { | ||
constructor(private primeng: PrimeNG) {} | ||
ngOnInit() { | ||
this.primeng.ripple.set(true); | ||
} | ||
}` | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Code } from '@/domain/code'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'translation-doc', | ||
template: ` | ||
<app-docsectiontext> | ||
<p>A translation is specified using the translation property during initialization.</p> | ||
<app-code [code]="code" [hideToggleCode]="true"></app-code> | ||
</app-docsectiontext> | ||
` | ||
}) | ||
export class TranslationDoc { | ||
code: Code = { | ||
typescript: `providePrimeNG({ | ||
translation: { | ||
accept: 'Aceptar', | ||
reject: 'Rechazar', | ||
//translations | ||
} | ||
})` | ||
}; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Code } from '@/domain/code'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'provider-doc', | ||
template: ` | ||
<app-docsectiontext> | ||
<p>The initial configuration is defined by the <i>providePrimeNG</i> provider during application startup.</p> | ||
</app-docsectiontext> | ||
<app-code [code]="code" [hideToggleCode]="true"></app-code> | ||
` | ||
}) | ||
export class ProviderDoc { | ||
code: Code = { | ||
typescript: `import { ApplicationConfig } from '@angular/core'; | ||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; | ||
import { providePrimeNG } from 'primeng/config'; | ||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
provideAnimationsAsync(), | ||
providePrimeNG({ /* options */ }) | ||
] | ||
};` | ||
}; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Code } from '@/domain/code'; | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'theming-doc', | ||
template: ` | ||
<app-docsectiontext> | ||
<p>PrimeNG provides 4 predefined themes out of the box; Aura, Material, Lara and Nora. See the <a routerLink="/theming">theming</a> documentation for details.</p> | ||
</app-docsectiontext> | ||
<app-code [code]="code" [hideToggleCode]="true"></app-code> | ||
` | ||
}) | ||
export class ThemeDoc { | ||
code: Code = { | ||
typescript: `import { ApplicationConfig } from '@angular/core'; | ||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; | ||
import { providePrimeNG } from 'primeng/config'; | ||
import Aura from '@primeng/themes/aura'; | ||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
provideAnimationsAsync(), | ||
providePrimeNG({ | ||
theme: { | ||
preset: Aura, | ||
options: { | ||
prefix: 'p', | ||
darkModeSelector: 'system', | ||
cssLayer: false | ||
} | ||
} | ||
}) | ||
] | ||
};` | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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.