Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@@ -55,7 +55,7 @@ export class LongContentDoc {
}
code: Code = {
- basic: `
+ basic: `
`,
html: `
-
+
Setting maximizable property to true enables the full screen mode.
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@@ -27,7 +27,7 @@ export class MaximizableDoc {
}
code: Code = {
- basic: `
+ basic: `
`,
html: `
-
+
Mask layer behind the Dialog can be turned on by setting the modal property to true .
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@@ -27,7 +27,7 @@ export class ModalDoc {
}
code: Code = {
- basic: `
+ basic: `
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@@ -37,7 +37,7 @@ export class ModalDoc {
html: `
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
diff --git a/src/app/showcase/doc/dialog/overlaysinsidedoc.ts b/src/app/showcase/doc/dialog/overlaysinsidedoc.ts
index 9759a23585b..1b33c1a3cbd 100644
--- a/src/app/showcase/doc/dialog/overlaysinsidedoc.ts
+++ b/src/app/showcase/doc/dialog/overlaysinsidedoc.ts
@@ -16,7 +16,7 @@ interface City {
-
+
@@ -48,7 +48,7 @@ export class OverlaysInsideDoc implements OnInit {
}
code: Code = {
- basic: `
+ basic: `
@@ -57,7 +57,7 @@ export class OverlaysInsideDoc implements OnInit {
html: `
-
+
diff --git a/src/app/showcase/doc/dialog/positiondoc.ts b/src/app/showcase/doc/dialog/positiondoc.ts
index 3564dba290f..6a4c833aaf1 100644
--- a/src/app/showcase/doc/dialog/positiondoc.ts
+++ b/src/app/showcase/doc/dialog/positiondoc.ts
@@ -9,18 +9,18 @@ import { Code } from '@domain/code';
@@ -54,46 +54,46 @@ export class PositionDoc {
code: Code = {
basic: `
`,
html: `
`,
diff --git a/src/app/showcase/doc/dialog/responsivedoc.ts b/src/app/showcase/doc/dialog/responsivedoc.ts
index 03f3ada34d2..b85e2506c2f 100644
--- a/src/app/showcase/doc/dialog/responsivedoc.ts
+++ b/src/app/showcase/doc/dialog/responsivedoc.ts
@@ -11,7 +11,7 @@ import { Code } from '@domain/code';
-
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@@ -30,7 +30,7 @@ export class ResponsiveDoc {
}
code: Code = {
- basic: `
+ basic: `
`,
html: `
-
+
Dialog can be customized using header and footer templates.
-
+
@@ -26,8 +26,8 @@ import { Code } from '@domain/code';
-
-
+
+
@@ -42,7 +42,7 @@ export class TemplateDoc {
}
code: Code = {
- basic: `
+ basic: `
+ (onClick)="visible = false" />
`,
html: `
-
+
+ (onClick)="visible = false" />
diff --git a/src/app/showcase/doc/dialog/withoutmodaldoc.ts b/src/app/showcase/doc/dialog/withoutmodaldoc.ts
index 3170616ac16..662982e432f 100644
--- a/src/app/showcase/doc/dialog/withoutmodaldoc.ts
+++ b/src/app/showcase/doc/dialog/withoutmodaldoc.ts
@@ -8,7 +8,7 @@ import { Code } from '@domain/code';
Mask layer behind the Dialog is configured with the modal property. By default, no modal layer is added.
-
+
Update your information.
@@ -20,8 +20,8 @@ import { Code } from '@domain/code';
@@ -36,7 +36,7 @@ export class WithoutModalDoc {
}
code: Code = {
- basic: `
+ basic: `
Update your information.
@@ -48,13 +48,13 @@ export class WithoutModalDoc {
`,
html: `
-
+
Update your information.
@@ -66,8 +66,8 @@ export class WithoutModalDoc {
`,
diff --git a/src/app/showcase/doc/dynamicdialog/exampledoc.ts b/src/app/showcase/doc/dynamicdialog/exampledoc.ts
index 3d99288fa42..4dbab7e72e0 100644
--- a/src/app/showcase/doc/dynamicdialog/exampledoc.ts
+++ b/src/app/showcase/doc/dynamicdialog/exampledoc.ts
@@ -16,7 +16,7 @@ import { Footer } from './footer';
`,
@@ -68,11 +68,11 @@ export class ExampleDoc implements OnDestroy {
code: Code = {
basic: `
-
`,
+
`,
html: `
`,
typescript: `import { Component, OnDestroy } from '@angular/core';
@@ -173,7 +173,7 @@ import { ButtonModule } from 'primeng/button';
standalone:true,
imports:[TableModule, ButtonModule],
template: \`
@@ -196,7 +196,7 @@ import { ButtonModule } from 'primeng/button';
{{ product.quantity }}
-
+
@@ -259,7 +259,7 @@ import { ButtonModule } from 'primeng/button';
There are {{ totalProducts }} products in total in this list.
\`
})
@@ -302,7 +302,7 @@ import { ButtonModule } from 'primeng/button';
imports: [ButtonModule],
template: \`
\`
})
export class Footer {
diff --git a/src/app/showcase/doc/dynamicdialog/footer.ts b/src/app/showcase/doc/dynamicdialog/footer.ts
index f6c5f872c2e..18fc9fe5b33 100644
--- a/src/app/showcase/doc/dynamicdialog/footer.ts
+++ b/src/app/showcase/doc/dynamicdialog/footer.ts
@@ -5,7 +5,7 @@ import { DynamicDialogRef } from 'primeng/dynamicdialog';
selector: 'footer',
template: `
`
})
diff --git a/src/app/showcase/doc/dynamicdialog/infodemo.ts b/src/app/showcase/doc/dynamicdialog/infodemo.ts
index c01841b293a..040d4145cf7 100644
--- a/src/app/showcase/doc/dynamicdialog/infodemo.ts
+++ b/src/app/showcase/doc/dynamicdialog/infodemo.ts
@@ -8,7 +8,7 @@ import { DialogService, DynamicDialogComponent, DynamicDialogRef } from 'primeng
There are
{{ totalProducts }} products in total in this list.
`
diff --git a/src/app/showcase/doc/dynamicdialog/productlistdemo.ts b/src/app/showcase/doc/dynamicdialog/productlistdemo.ts
index 501fab8aa4c..50b5033be57 100755
--- a/src/app/showcase/doc/dynamicdialog/productlistdemo.ts
+++ b/src/app/showcase/doc/dynamicdialog/productlistdemo.ts
@@ -5,7 +5,7 @@ import { ProductService } from '@service/productservice';
import { InfoDemo } from './infodemo';
@Component({
template: `
@@ -28,7 +28,7 @@ import { InfoDemo } from './infodemo';
{{ product.quantity }}
-
+
diff --git a/src/app/showcase/doc/fileupload/templatedoc.ts b/src/app/showcase/doc/fileupload/templatedoc.ts
index 4f85f3a7559..381e8c30c3b 100644
--- a/src/app/showcase/doc/fileupload/templatedoc.ts
+++ b/src/app/showcase/doc/fileupload/templatedoc.ts
@@ -38,7 +38,7 @@ import { MessageService, PrimeNGConfig } from 'primeng/api';
{{ file.name }}
{{ formatSize(file.size) }}
-
+
@@ -154,7 +154,7 @@ export class TemplateDoc {
{{ file.name }}
{{ formatSize(file.size) }}
-
+
@@ -207,7 +207,7 @@ export class TemplateDoc {
{{ file.name }}
{{ formatSize(file.size) }}
-
+
diff --git a/src/app/showcase/doc/galleria/controlleddoc.ts b/src/app/showcase/doc/galleria/controlleddoc.ts
index 88195c5141a..8e99400e02f 100644
--- a/src/app/showcase/doc/galleria/controlleddoc.ts
+++ b/src/app/showcase/doc/galleria/controlleddoc.ts
@@ -10,8 +10,8 @@ import { PhotoService } from '@service/photoservice';
@@ -76,13 +76,13 @@ export class ControlledDoc implements OnInit {
+ (onClick)="next()" />
+ (onClick)="next()" />
Thumbnails can also be hidden in full screen mode.
-
+
+ (onClick)="displayBasic = true" />
Full screen mode is enabled by adding fullScreen property.
-
+
@@ -81,7 +81,7 @@ export class WithThumbnailsDoc implements OnInit {
+ (onClick)="displayBasic = true" />
-
= 100" />
-
+ = 100" />
+
@@ -25,11 +25,11 @@ export class ReactiveDoc {
`,
@@ -38,11 +38,11 @@ export class ReactiveDoc {
`,
diff --git a/src/app/showcase/doc/menu/popupdoc.ts b/src/app/showcase/doc/menu/popupdoc.ts
index 4b48845b504..c37ae1bcca2 100644
--- a/src/app/showcase/doc/menu/popupdoc.ts
+++ b/src/app/showcase/doc/menu/popupdoc.ts
@@ -10,7 +10,7 @@ import { Code } from '@domain/code';
`,
@@ -39,11 +39,11 @@ export class PopupDoc implements OnInit {
code: Code = {
basic: `
- `,
+ `,
html: ``,
typescript: `import { Component, OnInit } from '@angular/core';
diff --git a/src/app/showcase/doc/messages/dynamicdoc.ts b/src/app/showcase/doc/messages/dynamicdoc.ts
index 061088c95d5..b7189d304b1 100644
--- a/src/app/showcase/doc/messages/dynamicdoc.ts
+++ b/src/app/showcase/doc/messages/dynamicdoc.ts
@@ -9,8 +9,8 @@ import { Code } from '@domain/code';
A binding to the value property is required to provide messages to the component.
@@ -35,13 +35,13 @@ export class DynamicDoc {
basic: `
`,
@@ -49,13 +49,13 @@ export class DynamicDoc {
diff --git a/src/app/showcase/doc/messages/servicedoc.ts b/src/app/showcase/doc/messages/servicedoc.ts
index a2410777643..da72f079bbd 100644
--- a/src/app/showcase/doc/messages/servicedoc.ts
+++ b/src/app/showcase/doc/messages/servicedoc.ts
@@ -13,9 +13,9 @@ import { Code } from '@domain/code';
@@ -43,16 +43,16 @@ export class ServiceDoc {
code: Code = {
basic: `
`,
html: ``,
diff --git a/src/app/showcase/doc/overlay/basicdoc.ts b/src/app/showcase/doc/overlay/basicdoc.ts
index 3cecc5d39dc..e487bc87d8b 100644
--- a/src/app/showcase/doc/overlay/basicdoc.ts
+++ b/src/app/showcase/doc/overlay/basicdoc.ts
@@ -7,7 +7,7 @@ import { Code } from '@domain/code';
Overlay is a container to display content in an overlay window. All the options mentioned above can be used as props for this component.
`
@@ -20,13 +20,13 @@ export class OverlayBasicDemo {
}
code: Code = {
- basic: `
+ basic: `
Content
`,
html: `
-
+
Content
diff --git a/src/app/showcase/doc/overlay/templatedoc.ts b/src/app/showcase/doc/overlay/templatedoc.ts
index 1e8bc399e65..9d431f86b90 100644
--- a/src/app/showcase/doc/overlay/templatedoc.ts
+++ b/src/app/showcase/doc/overlay/templatedoc.ts
@@ -7,7 +7,7 @@ import { Code } from '@domain/code';
Content can be customized with the content template.
-
+
Content - {{ option.mode }}
@@ -22,7 +22,7 @@ export class OverlayTemplateDemo {
}
code: Code = {
- basic: `
+ basic: `
Content - {{option.mode}}
@@ -30,7 +30,7 @@ export class OverlayTemplateDemo {
`,
html: `
-
+
Content - {{option.mode}}
diff --git a/src/app/showcase/doc/overlaypanel/basicdoc.ts b/src/app/showcase/doc/overlaypanel/basicdoc.ts
index 368f29641d3..bececac4c50 100644
--- a/src/app/showcase/doc/overlaypanel/basicdoc.ts
+++ b/src/app/showcase/doc/overlaypanel/basicdoc.ts
@@ -8,7 +8,7 @@ import { Code } from '@domain/code';
OverlayPanel is accessed via its reference and visibility is controlled using toggle , show and hide methods with an event of the target.
-
+
@@ -57,7 +57,7 @@ export class BasicDoc {
];
code: Code = {
- basic: `
+ basic: `
@@ -96,7 +96,7 @@ export class BasicDoc {
`,
html: `
-
+
diff --git a/src/app/showcase/doc/overlaypanel/datatabledoc.ts b/src/app/showcase/doc/overlaypanel/datatabledoc.ts
index fbaca20ba0c..b1c725b04e5 100644
--- a/src/app/showcase/doc/overlaypanel/datatabledoc.ts
+++ b/src/app/showcase/doc/overlaypanel/datatabledoc.ts
@@ -20,7 +20,7 @@ interface TableRowSelectEvent {
-
+
@@ -83,7 +83,7 @@ export class DataTableDoc implements OnInit {
code: Code = {
basic: `
@@ -146,7 +146,7 @@ export class DataTableDoc implements OnInit {
html: `
diff --git a/src/app/showcase/doc/overlaypanel/targetdoc.ts b/src/app/showcase/doc/overlaypanel/targetdoc.ts
index 8c6ea3bc915..f5ddace706c 100644
--- a/src/app/showcase/doc/overlaypanel/targetdoc.ts
+++ b/src/app/showcase/doc/overlaypanel/targetdoc.ts
@@ -11,7 +11,7 @@ import { Code } from '@domain/code';
-
+
Target Element
@@ -24,7 +24,7 @@ import { Code } from '@domain/code';
})
export class TargetDoc {
code: Code = {
- basic: `
+ basic: `
Target Element
@@ -34,7 +34,7 @@ export class TargetDoc {
html: `
-
+
Target Element
diff --git a/src/app/showcase/doc/overlaypanel/templatedoc.ts b/src/app/showcase/doc/overlaypanel/templatedoc.ts
index 950792d09b5..cf07a88e7aa 100644
--- a/src/app/showcase/doc/overlaypanel/templatedoc.ts
+++ b/src/app/showcase/doc/overlaypanel/templatedoc.ts
@@ -13,7 +13,7 @@ import { Code } from '@domain/code';
Custom Content
-
+
`
@@ -25,7 +25,7 @@ export class TemplateDoc {
Custom Content
-
`,
+
`,
html: `
@@ -34,7 +34,7 @@ export class TemplateDoc {
Custom Content
-
+
`,
typescript: `
diff --git a/src/app/showcase/doc/scroller/programmaticdoc.ts b/src/app/showcase/doc/scroller/programmaticdoc.ts
index 4aaf77e5e5a..613d21f440e 100644
--- a/src/app/showcase/doc/scroller/programmaticdoc.ts
+++ b/src/app/showcase/doc/scroller/programmaticdoc.ts
@@ -9,7 +9,7 @@ import { Code } from '@domain/code';
Scrolling to a specific index can be done with the scrollToIndex function.
-
+
{{ item }}
@@ -33,7 +33,7 @@ export class ProgrammaticDoc implements OnInit {
}
code: Code = {
- basic: `
+ basic: `
`,
html: `
`
@@ -30,7 +30,7 @@ export class BasicDoc {
Lorem ipsum dolor sit amet...
- `,
+ `,
html: `
@@ -40,7 +40,7 @@ export class BasicDoc {
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-
+
`,
typescript: `import { Component } from '@angular/core';
diff --git a/src/app/showcase/doc/sidebar/fullscreendoc.ts b/src/app/showcase/doc/sidebar/fullscreendoc.ts
index 74afbcde5f5..d0a86799161 100644
--- a/src/app/showcase/doc/sidebar/fullscreendoc.ts
+++ b/src/app/showcase/doc/sidebar/fullscreendoc.ts
@@ -17,7 +17,7 @@ import { Code } from '@domain/code';
consequat.
-
+
`
@@ -36,7 +36,7 @@ export class FullScreenDoc {
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
-
`,
+
`,
html: `
@@ -50,7 +50,7 @@ export class FullScreenDoc {
consequat.
-
+
`,
typescript: `import { Component } from '@angular/core';
diff --git a/src/app/showcase/doc/sidebar/headlessdoc.ts b/src/app/showcase/doc/sidebar/headlessdoc.ts
index 84339200127..27d2d2dc432 100644
--- a/src/app/showcase/doc/sidebar/headlessdoc.ts
+++ b/src/app/showcase/doc/sidebar/headlessdoc.ts
@@ -46,7 +46,7 @@ import { Sidebar } from 'primeng/sidebar';
Your Logo
-
+
@@ -204,7 +204,7 @@ import { Sidebar } from 'primeng/sidebar';
-
+
`
@@ -256,7 +256,7 @@ export class HeadlessDoc {
Your Logo
-
+
@@ -414,7 +414,7 @@ export class HeadlessDoc {
-
`,
+
`,
html: `
@@ -454,7 +454,7 @@ export class HeadlessDoc {
Your Logo
-
+
@@ -612,7 +612,7 @@ export class HeadlessDoc {
-
+
`,
typescript: `import { Component, ViewChild } from '@angular/core';
diff --git a/src/app/showcase/doc/sidebar/positiondoc.ts b/src/app/showcase/doc/sidebar/positiondoc.ts
index bc07e85a796..d94007f5880 100644
--- a/src/app/showcase/doc/sidebar/positiondoc.ts
+++ b/src/app/showcase/doc/sidebar/positiondoc.ts
@@ -24,10 +24,10 @@ import { Code } from '@domain/code';
Bottom Sidebar
-
-
-
-
+
+
+
+
`
@@ -61,22 +61,22 @@ export class PositionDoc {
`,
html: `
@@ -99,22 +99,22 @@ export class PositionDoc {
`,
diff --git a/src/app/showcase/doc/sidebar/sizedoc.ts b/src/app/showcase/doc/sidebar/sizedoc.ts
index 974baf5dacc..65fcdee413f 100644
--- a/src/app/showcase/doc/sidebar/sizedoc.ts
+++ b/src/app/showcase/doc/sidebar/sizedoc.ts
@@ -17,7 +17,7 @@ import { Code } from '@domain/code';
consequat.
-
+
`
@@ -34,7 +34,7 @@ export class SizeDoc {
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
-
`,
+
`,
html: `
@@ -46,7 +46,7 @@ export class SizeDoc {
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
-
+
`,
typescript: `import { Component } from '@angular/core';
diff --git a/src/app/showcase/doc/sidebar/templatedoc.ts b/src/app/showcase/doc/sidebar/templatedoc.ts
index 4862df52b0e..12545f8d687 100644
--- a/src/app/showcase/doc/sidebar/templatedoc.ts
+++ b/src/app/showcase/doc/sidebar/templatedoc.ts
@@ -20,7 +20,7 @@ import { Code } from '@domain/code';
consequat.
-
+
`
@@ -44,7 +44,7 @@ export class TemplateDoc {
Lorem ipsum dolor sit amet...
-
`,
+
`,
html: `
@@ -63,7 +63,7 @@ export class TemplateDoc {
consequat.
-
+
`,
typescript: `import { Component } from '@angular/core';
diff --git a/src/app/showcase/doc/steps/controlleddoc.ts b/src/app/showcase/doc/steps/controlleddoc.ts
index 970861c7242..58cf648f181 100644
--- a/src/app/showcase/doc/steps/controlleddoc.ts
+++ b/src/app/showcase/doc/steps/controlleddoc.ts
@@ -10,9 +10,9 @@ import { Code } from '@domain/code';
@@ -41,19 +41,19 @@ export class ControlledDoc implements OnInit {
code: Code = {
basic: `
-
+
@@ -271,7 +271,7 @@ export class CustomersDoc {
>
-
+
@@ -433,7 +433,7 @@ export class CustomersDoc {
>
-
+
diff --git a/src/app/showcase/doc/table/exportdoc.ts b/src/app/showcase/doc/table/exportdoc.ts
index d066856a8e7..87ed46635f9 100644
--- a/src/app/showcase/doc/table/exportdoc.ts
+++ b/src/app/showcase/doc/table/exportdoc.ts
@@ -24,7 +24,7 @@ interface ExportColumn {
@@ -91,7 +91,7 @@ export class ExportDoc {
+ (onClick)="dt.exportCSV()" />
@@ -123,7 +123,7 @@ export class ExportDoc {
+ (onClick)="dt.exportCSV()" />
diff --git a/src/app/showcase/doc/table/filteradvanceddoc.ts b/src/app/showcase/doc/table/filteradvanceddoc.ts
index d550da02d4e..c0913064dc9 100644
--- a/src/app/showcase/doc/table/filteradvanceddoc.ts
+++ b/src/app/showcase/doc/table/filteradvanceddoc.ts
@@ -14,7 +14,7 @@ import { CustomerService } from '../../service/customerservice';
-
+
@@ -233,7 +233,7 @@ export class FilterAdvancedDoc {
>
-
+
@@ -373,7 +373,7 @@ export class FilterAdvancedDoc {
>
diff --git a/src/app/showcase/doc/table/productsdoc.ts b/src/app/showcase/doc/table/productsdoc.ts
index 91cfb7043e8..c191b98e720 100644
--- a/src/app/showcase/doc/table/productsdoc.ts
+++ b/src/app/showcase/doc/table/productsdoc.ts
@@ -14,8 +14,8 @@ import { ProductService } from '@service/productservice';
-
-
+
+
@@ -74,8 +74,8 @@ import { ProductService } from '@service/productservice';
-
-
+
+
@@ -144,8 +144,8 @@ import { ProductService } from '@service/productservice';
-
-
+
+
@@ -293,13 +293,13 @@ export class ProductsDoc {
label="New"
icon="pi pi-plus"
class="mr-2"
- (click)="openNew()" />
+ (onClick)="openNew()" />
@@ -404,14 +404,14 @@ export class ProductsDoc {
[rounded]="true"
[outlined]="true"
severity="success"
- (click)="editProduct(product)" />
+ (onClick)="editProduct(product)" />
+ (onClick)="deleteProduct(product)" />
@@ -431,13 +431,13 @@ export class ProductsDoc {
label="New"
icon="pi pi-plus"
class="mr-2"
- (click)="openNew()" />
+ (onClick)="openNew()" />
@@ -549,14 +549,14 @@ export class ProductsDoc {
[rounded]="true"
[outlined]="true"
severity="success"
- (click)="editProduct(product)" />
+ (onClick)="editProduct(product)" />
+ (onClick)="deleteProduct(product)" />
@@ -686,13 +686,13 @@ export class ProductsDoc {
label="Cancel"
icon="pi pi-times"
[text]="true"
- (click)="hideDialog()" />
+ (onClick)="hideDialog()" />
+ (onClick)="saveProduct()" />
diff --git a/src/app/showcase/doc/tabmenu/controlleddoc.ts b/src/app/showcase/doc/tabmenu/controlleddoc.ts
index 248f1a057c3..45f614a2c61 100644
--- a/src/app/showcase/doc/tabmenu/controlleddoc.ts
+++ b/src/app/showcase/doc/tabmenu/controlleddoc.ts
@@ -10,9 +10,9 @@ import { Code } from '@domain/code';
@@ -41,19 +41,19 @@ export class ControlledDoc implements OnInit {
code: Code = {
basic: `
@@ -43,19 +43,19 @@ export class ControlledDoc {
code: Code = {
basic: `
Popup mode is enabled by adding popup property and calling toggle method with an event of the target.
@@ -91,11 +91,11 @@ export class PopupDoc implements OnInit {
}
code: Code = {
- basic: `
+ basic: `
`,
html: ``,
diff --git a/src/app/showcase/doc/toast/animationdoc.ts b/src/app/showcase/doc/toast/animationdoc.ts
index 35bca011b12..efe08ccfe19 100644
--- a/src/app/showcase/doc/toast/animationdoc.ts
+++ b/src/app/showcase/doc/toast/animationdoc.ts
@@ -10,7 +10,7 @@ import { Code } from '@domain/code';
`,
@@ -29,14 +29,14 @@ export class AnimationDoc {
[showTransitionOptions]="'1000ms'"
[hideTransitionOptions]="'1000ms'"
[showTransformOptions]="'translateX(100%)'" />
- `,
+ `,
html: ``,
typescript: `import { Component } from '@angular/core';
import { MessageService } from 'primeng/api';
diff --git a/src/app/showcase/doc/toast/basicdoc.ts b/src/app/showcase/doc/toast/basicdoc.ts
index 2ba76023ea2..e4bd9b7d8f9 100644
--- a/src/app/showcase/doc/toast/basicdoc.ts
+++ b/src/app/showcase/doc/toast/basicdoc.ts
@@ -13,7 +13,7 @@ import { Code } from '@domain/code';
`,
@@ -28,10 +28,10 @@ export class BasicDoc {
code: Code = {
basic: `
- `,
+ `,
html: ``,
typescript: `import { Component } from '@angular/core';
import { MessageService } from 'primeng/api';
diff --git a/src/app/showcase/doc/toast/cleardoc.ts b/src/app/showcase/doc/toast/cleardoc.ts
index 3cf36209fb4..87de728aa34 100644
--- a/src/app/showcase/doc/toast/cleardoc.ts
+++ b/src/app/showcase/doc/toast/cleardoc.ts
@@ -13,8 +13,8 @@ import { Code } from '@domain/code';
`,
@@ -35,22 +35,22 @@ export class ClearDoc {
basic: `
`,
html: ``,
diff --git a/src/app/showcase/doc/toast/headlessdoc.ts b/src/app/showcase/doc/toast/headlessdoc.ts
index a42243fafbc..a95255d6efa 100644
--- a/src/app/showcase/doc/toast/headlessdoc.ts
+++ b/src/app/showcase/doc/toast/headlessdoc.ts
@@ -21,14 +21,14 @@ import { Code } from '@domain/code';
{{ progress }}% uploaded...
-
+
`,
@@ -104,18 +104,18 @@ export class HeadlessDoc {
label="Another Upload?"
[text]="true"
styleClass="p-0"
- (click)="closeFn($event)" />
+ (onClick)="closeFn($event)" />
+ (onClick)="closeFn($event)" />
- `,
+ `,
html: `
+ (onClick)="closeFn($event)" />
+ (onClick)="closeFn($event)" />
-
+
`,
typescript: `import { ChangeDetectorRef, Component } from '@angular/core';
import { MessageService } from 'primeng/api';
diff --git a/src/app/showcase/doc/toast/lifedoc.ts b/src/app/showcase/doc/toast/lifedoc.ts
index c42256eac22..f1098b30c80 100644
--- a/src/app/showcase/doc/toast/lifedoc.ts
+++ b/src/app/showcase/doc/toast/lifedoc.ts
@@ -10,8 +10,8 @@ import { Code } from '@domain/code';
`,
@@ -32,21 +32,21 @@ export class LifeDoc {
basic: `
`,
html: ``,
typescript: `import { Component } from '@angular/core';
diff --git a/src/app/showcase/doc/toast/multipledoc.ts b/src/app/showcase/doc/toast/multipledoc.ts
index e65b3dd9cf5..0822d5589fb 100644
--- a/src/app/showcase/doc/toast/multipledoc.ts
+++ b/src/app/showcase/doc/toast/multipledoc.ts
@@ -10,7 +10,7 @@ import { Code } from '@domain/code';
`,
@@ -32,14 +32,14 @@ export class MultipleDoc {
basic: `
`,
html: ``,
diff --git a/src/app/showcase/doc/toast/positiondoc.ts b/src/app/showcase/doc/toast/positiondoc.ts
index 3d424fbf372..43b8621a046 100644
--- a/src/app/showcase/doc/toast/positiondoc.ts
+++ b/src/app/showcase/doc/toast/positiondoc.ts
@@ -13,9 +13,9 @@ import { Code } from '@domain/code';
-
-
-
+
+
+
`,
@@ -43,16 +43,16 @@ export class PositionDoc {
`,
@@ -63,16 +63,16 @@ export class PositionDoc {
`,
diff --git a/src/app/showcase/doc/toast/responsivedoc.ts b/src/app/showcase/doc/toast/responsivedoc.ts
index 828232c234a..536369bc939 100644
--- a/src/app/showcase/doc/toast/responsivedoc.ts
+++ b/src/app/showcase/doc/toast/responsivedoc.ts
@@ -13,7 +13,7 @@ import { Code } from '@domain/code';
`,
@@ -28,10 +28,10 @@ export class ResponsiveDoc {
code: Code = {
basic: `
- `,
+ `,
html: ``,
typescript: `import { Component } from '@angular/core';
import { MessageService } from 'primeng/api';
diff --git a/src/app/showcase/doc/toast/severitydoc.ts b/src/app/showcase/doc/toast/severitydoc.ts
index d1b64136a8e..3f9742701d9 100644
--- a/src/app/showcase/doc/toast/severitydoc.ts
+++ b/src/app/showcase/doc/toast/severitydoc.ts
@@ -13,12 +13,12 @@ import { Code } from '@domain/code';
`,
@@ -56,37 +56,37 @@ export class SeverityDoc {
`,
html: `
@@ -94,37 +94,37 @@ export class SeverityDoc {
`,
diff --git a/src/app/showcase/doc/toast/stickydoc.ts b/src/app/showcase/doc/toast/stickydoc.ts
index 3056c301265..434fea5d1aa 100644
--- a/src/app/showcase/doc/toast/stickydoc.ts
+++ b/src/app/showcase/doc/toast/stickydoc.ts
@@ -11,8 +11,8 @@ import { Code } from '@domain/code';
@@ -35,12 +35,12 @@ export class StickyDoc {
`,
html: `
@@ -48,12 +48,12 @@ export class StickyDoc {
`,
diff --git a/src/app/showcase/doc/toast/targetdoc.ts b/src/app/showcase/doc/toast/targetdoc.ts
index 4deb9075d9f..881253f2e7e 100644
--- a/src/app/showcase/doc/toast/targetdoc.ts
+++ b/src/app/showcase/doc/toast/targetdoc.ts
@@ -11,8 +11,8 @@ import { Code } from '@domain/code';
`,
@@ -36,11 +36,11 @@ export class TargetDoc {
`,
html: `
@@ -48,11 +48,11 @@ export class TargetDoc {
`,
diff --git a/src/app/showcase/doc/toast/templatedoc.ts b/src/app/showcase/doc/toast/templatedoc.ts
index c74b9cf5f58..622b7b6d542 100644
--- a/src/app/showcase/doc/toast/templatedoc.ts
+++ b/src/app/showcase/doc/toast/templatedoc.ts
@@ -17,11 +17,11 @@ import { Code } from '@domain/code';
Amy Elsner
{{ message.summary }}
-
+
-
+
`,
@@ -68,11 +68,11 @@ export class TemplateDoc {
{{ message.summary }}
-
+
-
`,
+
`,
html: `
-
+
-
+
`,
typescript: `import { Component } from '@angular/core';
import { MessageService } from 'primeng/api';
diff --git a/src/app/showcase/doc/tree/controlleddoc.ts b/src/app/showcase/doc/tree/controlleddoc.ts
index afc13c05f55..78ad1f32cff 100644
--- a/src/app/showcase/doc/tree/controlleddoc.ts
+++ b/src/app/showcase/doc/tree/controlleddoc.ts
@@ -11,8 +11,8 @@ import { NodeService } from '@service/nodeservice';
@@ -54,12 +54,12 @@ export class ControlledDoc implements OnInit {
+ (onClick)="collapseAll()" />
`,
@@ -68,12 +68,12 @@ export class ControlledDoc implements OnInit {
+ (onClick)="collapseAll()" />
`,
diff --git a/src/app/showcase/doc/treetable/controlleddoc.ts b/src/app/showcase/doc/treetable/controlleddoc.ts
index 97ca1cb64f8..27b3327bc2d 100644
--- a/src/app/showcase/doc/treetable/controlleddoc.ts
+++ b/src/app/showcase/doc/treetable/controlleddoc.ts
@@ -9,7 +9,7 @@ import { NodeService } from '@service/nodeservice';
Expansion state is controlled with expandedKeys property.
-
+
@@ -59,7 +59,7 @@ export class ControlledDoc {
}
code: Code = {
- basic: `
+ basic: `
@@ -81,7 +81,7 @@ export class ControlledDoc {
`,
html: `
-
+
From 4e5975d2e42d4401aa2b0555264e821b4919fb89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Tue, 9 Jul 2024 12:41:59 +0300
Subject: [PATCH 14/20] Fixed #14454 - Listbox | filter is not working if
options is bind to a string array
---
src/app/components/listbox/listbox.ts | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/app/components/listbox/listbox.ts b/src/app/components/listbox/listbox.ts
index 4f20dd18c9d..8a3fd9c2a98 100755
--- a/src/app/components/listbox/listbox.ts
+++ b/src/app/components/listbox/listbox.ts
@@ -664,7 +664,11 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor,
visibleOptions = computed(() => {
const options = this.group ? this.flatOptions(this._options()) : this._options() || [];
- return this._filterValue() ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options;
+ const filterValue = this._filterValue();
+
+ if (this.searchFields[0] === undefined) {
+ return filterValue ? options.filter((option) => option.toString().toLocaleLowerCase(this.filterLocale).indexOf(filterValue.toLocaleLowerCase(this.filterLocale).trim()) !== -1) : options;
+ } else return filterValue ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options;
});
constructor(
From c0ebe02e685a7daec65112ac4f1f08bfa7cd3b94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Tue, 9 Jul 2024 13:47:21 +0300
Subject: [PATCH 15/20] refactor
---
src/app/components/listbox/listbox.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/components/listbox/listbox.ts b/src/app/components/listbox/listbox.ts
index 8a3fd9c2a98..dbb46d3e90f 100755
--- a/src/app/components/listbox/listbox.ts
+++ b/src/app/components/listbox/listbox.ts
@@ -668,7 +668,7 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor,
if (this.searchFields[0] === undefined) {
return filterValue ? options.filter((option) => option.toString().toLocaleLowerCase(this.filterLocale).indexOf(filterValue.toLocaleLowerCase(this.filterLocale).trim()) !== -1) : options;
- } else return filterValue ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options;
+ } else return filterValue ? this.filterService.filter(options, this.searchFields, filterValue, this.filterMatchMode, this.filterLocale) : options;
});
constructor(
From 9f2dce02b857338d3a0d732fe21f48c7d9daadd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Tue, 9 Jul 2024 16:22:00 +0300
Subject: [PATCH 16/20] Fixed #15680 - TabView | forward/backward buttons not
showing up when dynamic tab panels overflow
---
src/app/components/tabview/tabview.ts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/app/components/tabview/tabview.ts b/src/app/components/tabview/tabview.ts
index 7c3847e56a6..fb522e4269a 100755
--- a/src/app/components/tabview/tabview.ts
+++ b/src/app/components/tabview/tabview.ts
@@ -508,6 +508,7 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B
this.tabChangesSubscription = (this.tabPanels as QueryList).changes.subscribe((_) => {
this.initTabs();
this.refreshButtonState();
+ this.callResizeObserver();
});
(this.templates as QueryList).forEach((item) => {
@@ -523,7 +524,7 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B
});
}
- ngAfterViewInit() {
+ callResizeObserver() {
if (isPlatformBrowser(this.platformId)) {
if (this.autoHideButtons) {
this.bindResizeObserver();
@@ -531,6 +532,10 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B
}
}
+ ngAfterViewInit() {
+ this.callResizeObserver();
+ }
+
bindResizeObserver() {
this.container = DomHandler.findSingle(this.el.nativeElement, '[data-pc-section="navcontent"]');
this.list = DomHandler.findSingle(this.el.nativeElement, '[data-pc-section="nav"]');
From 11df3e95b584e8e6654a22a2d5fbb13a48ff08e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Tue, 9 Jul 2024 17:30:07 +0300
Subject: [PATCH 17/20] Fixed #15946 - ButtonComponent: routerLink accessible
even when button is disabled
---
src/app/components/button/button.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/components/button/button.ts b/src/app/components/button/button.ts
index a6b9d9a5c1c..95bbc32789d 100755
--- a/src/app/components/button/button.ts
+++ b/src/app/components/button/button.ts
@@ -349,7 +349,8 @@ export class ButtonDirective implements AfterViewInit, OnDestroy {
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
host: {
- class: 'p-element'
+ class: 'p-element',
+ '[class.p-disabled]': 'disabled' || 'loading'
}
})
export class Button implements AfterContentInit {
@@ -524,7 +525,6 @@ export class Button implements AfterContentInit {
'p-button p-component': true,
'p-button-icon-only': (this.icon || this.iconTemplate || this.loadingIcon || this.loadingIconTemplate) && !this.label,
'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
- 'p-disabled': this.disabled || this.loading,
'p-button-loading': this.loading,
'p-button-loading-label-only': this.loading && !this.icon && this.label && !this.loadingIcon && this.iconPos === 'left',
'p-button-link': this.link,
From fb957eb1224063a3631fbe9b6172eb6544d38857 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Wed, 10 Jul 2024 10:46:26 +0300
Subject: [PATCH 18/20] Fixed #15761 - Component: p-tree (selection)
---
src/app/components/tree/tree.ts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts
index 7e6e56987dd..afe15afd9ec 100755
--- a/src/app/components/tree/tree.ts
+++ b/src/app/components/tree/tree.ts
@@ -1358,7 +1358,9 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo
this.onNodeUnselect.emit({ originalEvent: event, node: node });
} else {
this.selection = node;
- this.onNodeSelect.emit({ originalEvent: event, node: node });
+ setTimeout(() => {
+ this.onNodeSelect.emit({ originalEvent: event, node: node });
+ });
}
} else {
if (selected) {
@@ -1366,7 +1368,9 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo
this.onNodeUnselect.emit({ originalEvent: event, node: node });
} else {
this.selection = [...(this.selection || []), node];
- this.onNodeSelect.emit({ originalEvent: event, node: node });
+ setTimeout(() => {
+ this.onNodeSelect.emit({ originalEvent: event, node: node });
+ });
}
}
From dcc001d069396e671e9a7b23be686864c9b88ed6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Wed, 10 Jul 2024 12:27:31 +0300
Subject: [PATCH 19/20] Fixed #15749 - Dialog: Focus to input element set
before transition ends
---
src/app/components/dialog/dialog.ts | 41 ++++++++++++++++++++++++++---
1 file changed, 38 insertions(+), 3 deletions(-)
diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts
index 93918923200..dfdc8d73646 100755
--- a/src/app/components/dialog/dialog.ts
+++ b/src/app/components/dialog/dialog.ts
@@ -546,7 +546,15 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel'];
}
- constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public renderer: Renderer2, public zone: NgZone, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {
+ constructor(
+ @Inject(DOCUMENT) private document: Document,
+ @Inject(PLATFORM_ID) private platformId: any,
+ public el: ElementRef,
+ public renderer: Renderer2,
+ public zone: NgZone,
+ private cd: ChangeDetectorRef,
+ public config: PrimeNGConfig
+ ) {
this.window = this.document.defaultView as Window;
}
@@ -598,18 +606,45 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
return this.header !== null ? UniqueComponentId() + '_header' : null;
}
+ parseDurationToMilliseconds(durationString: string): number | undefined {
+ const transitionTimeRegex = /([\d\.]+)(ms|s)\b/g;
+ let totalMilliseconds = 0;
+ let match;
+
+ while ((match = transitionTimeRegex.exec(durationString)) !== null) {
+ const value = parseFloat(match[1]);
+ const unit = match[2];
+
+ if (unit === 'ms') {
+ totalMilliseconds += value;
+ } else if (unit === 's') {
+ totalMilliseconds += value * 1000;
+ }
+ }
+
+ if (totalMilliseconds === 0) {
+ return undefined;
+ }
+
+ return totalMilliseconds;
+ }
+
focus(focusParentElement = this.contentViewChild?.nativeElement) {
+ const timeoutDuration = this.parseDurationToMilliseconds(this.transitionOptions);
+
let focusable = DomHandler.getFocusableElement(focusParentElement, '[autofocus]');
+
if (focusable) {
this.zone.runOutsideAngular(() => {
- setTimeout(() => focusable.focus(), 5);
+ setTimeout(() => focusable.focus(), timeoutDuration || 5);
});
return;
}
const focusableElement = DomHandler.getFocusableElement(focusParentElement);
+
if (focusableElement) {
this.zone.runOutsideAngular(() => {
- setTimeout(() => focusableElement.focus(), 5);
+ setTimeout(() => focusableElement.focus(), timeoutDuration || 5);
});
} else if (this.footerViewChild) {
// If the content section is empty try to focus on footer
From 23bed7b843d718b838de51269f9cc1039ffe726b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mehmet=20=C3=87etin?=
<92744169+mehmetcetin01140@users.noreply.github.com>
Date: Wed, 10 Jul 2024 15:34:52 +0300
Subject: [PATCH 20/20] Fixed #15550 - Table | Custom sort in table not working
---
src/app/components/table/table.ts | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts
index 0a282032d2a..a5c4a3cee6e 100644
--- a/src/app/components/table/table.ts
+++ b/src/app/components/table/table.ts
@@ -1555,9 +1555,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
this.restoringSort = false;
}
- if (this.lazy) {
- this.onLazyLoad.emit(this.createLazyLoadMetadata());
- } else if (this.value) {
+ this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());
+
+ if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,
@@ -1605,9 +1605,8 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}
if (this.multiSortMeta) {
- if (this.lazy) {
- this.onLazyLoad.emit(this.createLazyLoadMetadata());
- } else if (this.value) {
+ this.lazy && this.onLazyLoad.emit(this.createLazyLoadMetadata());
+ if (this.value) {
if (this.customSort) {
this.sortFunction.emit({
data: this.value,