Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/primefaces/primeng
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 19, 2023
2 parents ed23a8e + 1276507 commit 5776ac0
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 112 deletions.
23 changes: 11 additions & 12 deletions src/app/showcase/doc/carousel/basicdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { ProductService } from '../../service/productservice';
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand Down Expand Up @@ -86,16 +86,15 @@ export class BasicDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
</p-carousel>`,
html: `
<div class="card">
html: `<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="3" [circular]="false" [responsiveOptions]="responsiveOptions">
<ng-template let-product pTemplate="item">
<div class="border-1 surface-border border-round m-2 text-center py-5 px-3">
Expand All @@ -106,10 +105,10 @@ export class BasicDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
Expand Down
25 changes: 12 additions & 13 deletions src/app/showcase/doc/carousel/circulardoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { ProductService } from '../../service/productservice';
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand Down Expand Up @@ -86,16 +86,15 @@ export class CircularDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
</p-carousel>`,
html: `
<div class="card">
html: `<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="3" [circular]="true" [responsiveOptions]="responsiveOptions" autoplayInterval="3000">
<ng-template let-product pTemplate="item">
<div class="border-1 surface-border border-round m-2 text-center py-5 px-3">
Expand All @@ -106,10 +105,10 @@ export class CircularDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
Expand Down
25 changes: 12 additions & 13 deletions src/app/showcase/doc/carousel/numscrolldoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { ProductService } from '../../service/productservice';
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand Down Expand Up @@ -86,16 +86,15 @@ export class NumScrollDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
</p-carousel>`,
html: `
<div class="card">
html: `<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="1" [responsiveOptions]="responsiveOptions">
<ng-template let-product pTemplate="item">
<div class="border-1 surface-border border-round m-2 text-center py-5 px-3">
Expand All @@ -106,10 +105,10 @@ export class NumScrollDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</ng-template>
Expand Down
25 changes: 12 additions & 13 deletions src/app/showcase/doc/carousel/responsivedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import { ProductService } from '../../service/productservice';
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand Down Expand Up @@ -93,17 +93,16 @@ export class ResponsiveDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</div>
</ng-template>
</p-carousel>`,
html: `
<div class="card">
html: `<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="1" [responsiveOptions]="responsiveOptions">
<ng-template let-product pTemplate="item">
<div class="product-item">
Expand All @@ -115,10 +114,10 @@ export class ResponsiveDoc implements OnInit {
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
</div>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
</div>
Expand Down
83 changes: 38 additions & 45 deletions src/app/showcase/doc/carousel/templatedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import { ProductService } from '../../service/productservice';
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand Down Expand Up @@ -87,20 +87,17 @@ export class TemplateDoc implements OnInit {
<p>Header content</p>
</ng-template>
<ng-template let-product pTemplate="item">
<div class="product-item">
<div class="product-item-content">
<div class="mb-3">
<img src="https://primefaces.org/cdn/primeng/images/demo/product/{{ product.image }}" [alt]="product.name" class="product-image" />
</div>
<div>
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<p-button type="button" styleClass="p-button-help p-button-rounded" icon="pi pi-cog"></p-button>
</div>
<div class="border-1 surface-border border-round m-2 text-center py-5 px-3">
<div class="mb-3">
<img src="https://primefaces.org/cdn/primeng/images/demo/product/{{ product.image }}" [alt]="product.name" class="w-6 shadow-2" />
</div>
<div>
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</div>
</div>
Expand All @@ -109,35 +106,31 @@ export class TemplateDoc implements OnInit {
<p>Footer content</p>
</ng-template>
</p-carousel>`,
html: `
<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="1" [responsiveOptions]="responsiveOptions">
<ng-template pTemplate="header">
<p>Header content</p>
</ng-template>
<ng-template let-product pTemplate="item">
<div class="product-item">
<div class="product-item-content">
<div class="mb-3">
<img src="https://primefaces.org/cdn/primeng/images/demo/product/{{ product.image }}" [alt]="product.name" class="product-image" />
</div>
<div>
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="car-buttons mt-5">
<p-button type="button" styleClass="p-button p-button-rounded mr-2" icon="pi pi-search"></p-button>
<p-button type="button" styleClass="p-button-success p-button-rounded mr-2" icon="pi pi-star-fill"></p-button>
<p-button type="button" styleClass="p-button-help p-button-rounded" icon="pi pi-cog"></p-button>
</div>
</div>
</div>
html: `<div class="card">
<p-carousel [value]="products" [numVisible]="3" [numScroll]="1" [responsiveOptions]="responsiveOptions">
<ng-template pTemplate="header">
<p>Header content</p>
</ng-template>
<ng-template let-product pTemplate="item">
<div class="border-1 surface-border border-round m-2 text-center py-5 px-3">
<div class="mb-3">
<img src="https://primefaces.org/cdn/primeng/images/demo/product/{{ product.image }}" [alt]="product.name" class="w-6 shadow-2" />
</div>
<div>
<h4 class="mb-1">{{ product.name }}</h4>
<h6 class="mt-0 mb-3">{{ '$' + product.price }}</h6>
<p-tag [value]="product.inventoryStatus" [severity]="getSeverity(product.inventoryStatus)"></p-tag>
<div class="mt-5 flex align-items-center justify-content-center gap-2">
<p-button icon="pi pi-search" [rounded]="true" />
<p-button icon="pi pi-star-fill" [rounded]="true" severity="secondary" />
</div>
</ng-template>
<ng-template pTemplate="footer">
<p>Footer content</p>
</ng-template>
</p-carousel>
</div>
</div>
</ng-template>
<ng-template pTemplate="footer">
<p>Footer content</p>
</ng-template>
</p-carousel>
</div>`,
typescript: `
import { Component, OnInit } from '@angular/core';
Expand Down
Loading

0 comments on commit 5776ac0

Please sign in to comment.