From 427612af20d2a8c3bd167dddfb37c2980c52f159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:44:26 +0300 Subject: [PATCH 01/42] update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71b1193fea..e80c77311b 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -814,6 +814,16 @@ - TypeError: this.focusedItemInfo.mutate is not a function [\#14119](https://github.com/primefaces/primeng/issues/14119) - Upgrade to Angular 17? [\#14063](https://github.com/primefaces/primeng/issues/14063) +## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [16.9.14-LTS](https://www.npmjs.com/package/primeng/v/16.9.14-lts) (2024-08-01) + +**Fixed bugs:** +- Password: Tooltip with tooltipEvent='focus' is never displayed [\#16106](https://github.com/primefaces/primeng/issues/16106) +- Breadcrumb | Disabled breadcrumbs should have 'aria-disabled' [\#16125](https://github.com/primefaces/primeng/issues/16125) +- Table> double call to (onLazyLoad) event [\#16070](https://github.com/primefaces/primeng/issues/16070) +- pBadge | Add missing badgeStyle & badgeStyleClass to directive [\#16133](https://github.com/primefaces/primeng/issues/16133) +- Breadcrumb | 'tabindex' property not working [\#16139](https://github.com/primefaces/primeng/issues/16139) +- Menubar: autoDisplay and autoHide broken [\#13512](https://github.com/primefaces/primeng/issues/13512) + ## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [16.9.13-LTS](https://www.npmjs.com/package/primeng/v/16.9.13-lts) (2024-07-18) **Fixed bugs:** From 445d5b3c02dfdc288f05885a2711b0fed1c94eb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:00:44 +0000 Subject: [PATCH 02/42] Bump axios from 1.7.2 to 1.7.4 Bumps [axios](https://github.com/axios/axios) from 1.7.2 to 1.7.4. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.7.2...v1.7.4) --- updated-dependencies: - dependency-name: axios dependency-type: indirect ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 067b8b1557..1bba7d4a65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8313,9 +8313,9 @@ } }, "node_modules/axios": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.2.tgz", - "integrity": "sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dev": true, "dependencies": { "follow-redirects": "^1.15.6", From b860777d1a75b99174e109d6cccdb0058c19be03 Mon Sep 17 00:00:00 2001 From: joseph rosenthal Date: Fri, 16 Aug 2024 08:30:58 -0400 Subject: [PATCH 03/42] removed aria-hidden --- src/app/components/megamenu/megamenu.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/components/megamenu/megamenu.ts b/src/app/components/megamenu/megamenu.ts index e15fe600ad..424bc047d7 100755 --- a/src/app/components/megamenu/megamenu.ts +++ b/src/app/components/megamenu/megamenu.ts @@ -89,7 +89,6 @@ import { ObjectUtils, UniqueComponentId } from 'primeng/utils'; From b9d093c9973b80b662e5706b4172e15ad2f98e48 Mon Sep 17 00:00:00 2001 From: Pablo200206 Date: Fri, 16 Aug 2024 18:23:33 +0200 Subject: [PATCH 04/42] fix --- src/app/components/selectbutton/selectbutton.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/selectbutton/selectbutton.ts b/src/app/components/selectbutton/selectbutton.ts index 76a3488ac0..13636129f2 100755 --- a/src/app/components/selectbutton/selectbutton.ts +++ b/src/app/components/selectbutton/selectbutton.ts @@ -24,7 +24,7 @@ export const SELECTBUTTON_VALUE_ACCESSOR: any = {
Date: Wed, 21 Aug 2024 13:01:57 +0300 Subject: [PATCH 05/42] discount update --- src/app/showcase/data/news.json | 6 +++--- src/app/showcase/pages/lts/lts.component.html | 6 ++++-- src/app/showcase/pages/templates/apollo/apollo.ts | 6 ++++-- src/app/showcase/pages/templates/atlantis/atlantis.ts | 4 +++- src/app/showcase/pages/templates/avalon/avalon.ts | 2 ++ src/app/showcase/pages/templates/diamond/diamond.ts | 2 ++ src/app/showcase/pages/templates/freya/freya.ts | 2 ++ src/app/showcase/pages/templates/poseidon/poseidon.ts | 2 ++ src/app/showcase/pages/templates/ultima/ultima.ts | 2 ++ src/app/showcase/pages/templates/verona/verona.ts | 2 ++ src/app/showcase/pages/uikit/uikit.component.html | 6 ++++-- 11 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/app/showcase/data/news.json b/src/app/showcase/data/news.json index 1b8031cecb..3a861c750f 100644 --- a/src/app/showcase/data/news.json +++ b/src/app/showcase/data/news.json @@ -1,6 +1,6 @@ { "id": 65, - "content": "News on Angular 18 Support", - "linkText": "Learn More", - "linkHref": "https://www.primefaces.org/blog/primeng-for-angular-18/" + "content": "Summer Sale: Up to 50% Off 🛍️", + "linkText": "Visit Store", + "linkHref": "https://primefaces.org/store" } diff --git a/src/app/showcase/pages/lts/lts.component.html b/src/app/showcase/pages/lts/lts.component.html index e568d87733..c3b7fb0b72 100755 --- a/src/app/showcase/pages/lts/lts.component.html +++ b/src/app/showcase/pages/lts/lts.component.html @@ -134,7 +134,8 @@
- $249 + $249 + $149

@@ -174,7 +175,8 @@
- $990 + $990 + $490

diff --git a/src/app/showcase/pages/templates/apollo/apollo.ts b/src/app/showcase/pages/templates/apollo/apollo.ts index 2ef689b333..ce8185fc36 100644 --- a/src/app/showcase/pages/templates/apollo/apollo.ts +++ b/src/app/showcase/pages/templates/apollo/apollo.ts @@ -260,12 +260,14 @@ export class ApolloPage { licenseDetails: [ { title: 'Basic License', - price: '$49', + price: '$59', + discount_price:"$39", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', - price: '$490', + price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/atlantis/atlantis.ts b/src/app/showcase/pages/templates/atlantis/atlantis.ts index 600f3e5dfb..316c696803 100644 --- a/src/app/showcase/pages/templates/atlantis/atlantis.ts +++ b/src/app/showcase/pages/templates/atlantis/atlantis.ts @@ -202,11 +202,13 @@ export class AtlantisPage { { title: 'Basic License', price: '$59', - included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] + included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'], + discount_price:"$39", }, { title: 'Extended License', price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/avalon/avalon.ts b/src/app/showcase/pages/templates/avalon/avalon.ts index 0b9ec0fd8c..0d89065631 100644 --- a/src/app/showcase/pages/templates/avalon/avalon.ts +++ b/src/app/showcase/pages/templates/avalon/avalon.ts @@ -227,11 +227,13 @@ export class AvalonPage { { title: 'Basic License', price: '$49', + discount_price: '$29', included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$490', + discount_price: '$290', included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/diamond/diamond.ts b/src/app/showcase/pages/templates/diamond/diamond.ts index 20eb78952b..7b6185c528 100644 --- a/src/app/showcase/pages/templates/diamond/diamond.ts +++ b/src/app/showcase/pages/templates/diamond/diamond.ts @@ -226,11 +226,13 @@ export class DiamondPage { { title: 'Basic License', price: '$59', + discount_price:"$39", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/freya/freya.ts b/src/app/showcase/pages/templates/freya/freya.ts index 33930952e4..f41a83ccf7 100644 --- a/src/app/showcase/pages/templates/freya/freya.ts +++ b/src/app/showcase/pages/templates/freya/freya.ts @@ -219,11 +219,13 @@ export class FreyaPage { { title: 'Basic License', price: '$59', + discount_price:"$39", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/poseidon/poseidon.ts b/src/app/showcase/pages/templates/poseidon/poseidon.ts index bbe5da0b93..3d7fee1522 100644 --- a/src/app/showcase/pages/templates/poseidon/poseidon.ts +++ b/src/app/showcase/pages/templates/poseidon/poseidon.ts @@ -176,11 +176,13 @@ export class PoseidonPage { { title: 'Basic License', price: '$59', + discount_price:"$39", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/ultima/ultima.ts b/src/app/showcase/pages/templates/ultima/ultima.ts index 924a223278..71bfcedfdb 100644 --- a/src/app/showcase/pages/templates/ultima/ultima.ts +++ b/src/app/showcase/pages/templates/ultima/ultima.ts @@ -221,11 +221,13 @@ export class UltimaPage { { title: 'Basic License', price: '$59', + discount_price:"$39", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$590', + discount_price:"$390", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/templates/verona/verona.ts b/src/app/showcase/pages/templates/verona/verona.ts index e09864589d..e04a9adc10 100644 --- a/src/app/showcase/pages/templates/verona/verona.ts +++ b/src/app/showcase/pages/templates/verona/verona.ts @@ -211,11 +211,13 @@ export class VeronaPage { { title: 'Basic License', price: '$49', + discount_price:"$29", included: ['Non Commercial Usage', 'Single End Product, No Multi-Use', '1 Year Free Updates'] }, { title: 'Extended License', price: '$490', + discount_price:"$290", included: ['Commercial Usage', 'Multiple End Products', '1 Year Free Updates'] } ] diff --git a/src/app/showcase/pages/uikit/uikit.component.html b/src/app/showcase/pages/uikit/uikit.component.html index 57eeb6a1fd..f94d208285 100755 --- a/src/app/showcase/pages/uikit/uikit.component.html +++ b/src/app/showcase/pages/uikit/uikit.component.html @@ -150,7 +150,8 @@
For individual designers

- $99 + $99 + $49

    @@ -193,7 +194,8 @@
    - $249 + $249 + $149

    From 2dec12f142326b5c59ce5425a7d2eb857ba82ce5 Mon Sep 17 00:00:00 2001 From: shaman-apprentice Date: Fri, 23 Aug 2024 11:13:31 +0200 Subject: [PATCH 06/42] fix invalid quotes in documentation of HTML attribute --- src/app/showcase/doc/icons/colordoc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/showcase/doc/icons/colordoc.ts b/src/app/showcase/doc/icons/colordoc.ts index 32e910cf31..83167c8a9d 100644 --- a/src/app/showcase/doc/icons/colordoc.ts +++ b/src/app/showcase/doc/icons/colordoc.ts @@ -10,7 +10,7 @@ import { Code } from '@domain/code';
    - +
    @@ -20,7 +20,7 @@ export class ColorDoc { code: Code = { basic: ` - + ` }; } From eec7d04bc4ca2329be25010718465c38ac955d51 Mon Sep 17 00:00:00 2001 From: Marcio Tasca Junior Date: Wed, 28 Aug 2024 13:24:41 -0300 Subject: [PATCH 07/42] fix editable column disabled temporarily --- src/app/components/table/table.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index b15d650b46..a5f43d6c2f 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4191,7 +4191,9 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy { ) {} public ngOnChanges(changes: SimpleChanges): void { - if (this.el.nativeElement && !changes.data?.firstChange) { + if (changes.pEditableColumnDisabled?.currentValue === true && DomHandler.hasClass(this.el.nativeElement, 'p-cell-editing')) { + this.closeEditingCell(false, new Event('cancel')) + } else if (changes.data?.firstChange === false && this.el.nativeElement) { this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex); } } From 8f3af2614a35ceb6953ca17ad7aeb31d721938a0 Mon Sep 17 00:00:00 2001 From: marcoschndlr <58122429+marcoschndlr@users.noreply.github.com> Date: Wed, 28 Aug 2024 18:36:04 +0200 Subject: [PATCH 08/42] fix row grouping when using pagination --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 1a79f13d3c..ac5c0cba39 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3084,7 +3084,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable template: ` - + From 870e56c7510a64aa38b8cdcd2facb7b2e3be1833 Mon Sep 17 00:00:00 2001 From: Marcio Tasca Junior Date: Wed, 28 Aug 2024 14:05:41 -0300 Subject: [PATCH 09/42] lint fix --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index fb8bbbbfda..91e4e04fb9 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -4170,7 +4170,7 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy { public ngOnChanges(changes: SimpleChanges): void { if (changes.pEditableColumnDisabled?.currentValue === true && DomHandler.hasClass(this.el.nativeElement, 'p-cell-editing')) { - this.closeEditingCell(false, new Event('cancel')) + this.closeEditingCell(false, new Event('cancel')); } else if (changes.data?.firstChange === false && this.el.nativeElement) { this.dt.updateEditingCell(this.el.nativeElement, this.data, this.field, this.rowIndex); } From 6768a39e84ea524803135d73ad0b8474f546d0e6 Mon Sep 17 00:00:00 2001 From: Wendelstein7 <23213464+Wendelstein7@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:17:21 +0200 Subject: [PATCH 10/42] Fixed flawed example in table paginator docs The new line correctly identifies the last page by checking if the index after the current page's last item reaches or exceeds the total length of the customers list. The old line incorrectly identifies the last page, only working correctly when the amount of items in the table is an exact multiple of the rows per page count. --- src/app/showcase/doc/table/paginatorprogrammaticdoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts b/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts index 3727b7ad79..5c3b2d895e 100644 --- a/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts +++ b/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts @@ -84,7 +84,7 @@ export class PaginatorProgrammaticDoc { } isLastPage(): boolean { - return this.customers ? this.first === this.customers.length - this.rows : true; + return this.customers ? this.first + this.rows >= this.customers.length : true; } isFirstPage(): boolean { From 84159fb3837dadeba1ac8e434c3cd50f0c716234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 2 Sep 2024 09:59:26 +0300 Subject: [PATCH 11/42] Fixed #16321 - Tooltip | tooltip on Dropdown causes Errors --- src/app/components/tooltip/tooltip.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/app/components/tooltip/tooltip.ts b/src/app/components/tooltip/tooltip.ts index f623e528f9..4b78e5d311 100755 --- a/src/app/components/tooltip/tooltip.ts +++ b/src/app/components/tooltip/tooltip.ts @@ -185,7 +185,11 @@ export class Tooltip implements AfterViewInit, OnDestroy { this.focusListener = this.onFocus.bind(this); this.blurListener = this.onBlur.bind(this); - let target = this.getTarget(this.el.nativeElement); + let target = this.el.nativeElement.querySelector('.p-component'); + + if (!target) { + target = this.getTarget(this.el.nativeElement); + } target.addEventListener('focus', this.focusListener); target.addEventListener('blur', this.blurListener); @@ -601,7 +605,7 @@ export class Tooltip implements AfterViewInit, OnDestroy { } getTarget(el: Element) { - return DomHandler.hasClass(el, 'p-inputwrapper') ? DomHandler.findSingle(el, 'input') : el.querySelector('.p-component') || el; + return DomHandler.hasClass(el, 'p-inputwrapper') ? DomHandler.findSingle(el, 'input') : el; } preAlign(position: string) { @@ -668,10 +672,11 @@ export class Tooltip implements AfterViewInit, OnDestroy { this.el.nativeElement.removeEventListener('click', this.clickListener); } if (tooltipEvent === 'focus' || tooltipEvent === 'both') { - let target = this.getTarget(this.el.nativeElement); + let target = this.el.nativeElement.querySelector('.p-component'); - target.removeEventListener('focus', this.focusListener); - target.removeEventListener('blur', this.blurListener); + if (!target) { + target = this.getTarget(this.el.nativeElement); + } } this.unbindDocumentResizeListener(); } From b0d775d61c86195df596f3a594d49dac154ee8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:13:44 +0300 Subject: [PATCH 12/42] Fixed #16324 - Accessibility: Slider -> Keyboardtrap --- src/app/components/slider/slider.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/components/slider/slider.ts b/src/app/components/slider/slider.ts index 42756b8df4..10952580ca 100755 --- a/src/app/components/slider/slider.ts +++ b/src/app/components/slider/slider.ts @@ -351,8 +351,6 @@ export class Slider implements OnDestroy, ControlValueAccessor { if (this.animate) { DomHandler.addClass(this.el.nativeElement.children[0], 'p-slider-animate'); } - - event.preventDefault(); } onBarClick(event: Event) { @@ -406,9 +404,9 @@ export class Slider implements OnDestroy, ControlValueAccessor { this.updateValue(this.max, event); event.preventDefault(); break; + case 'Tab': this.onDragEnd(event); - event.preventDefault(); break; default: From c717fa571672dcab496900883343f8d3f6573e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:07:04 +0300 Subject: [PATCH 13/42] Fixed #16326 - Panel component -> toggle from the outside --- src/app/components/panel/panel.ts | 7 ++++--- src/app/showcase/doc/panel/basicdoc.ts | 25 +++++++++++++++++++++---- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/app/components/panel/panel.ts b/src/app/components/panel/panel.ts index 2b6e7706c9..4785fab9ef 100755 --- a/src/app/components/panel/panel.ts +++ b/src/app/components/panel/panel.ts @@ -1,6 +1,6 @@ import { animate, state, style, transition, trigger } from '@angular/animations'; import { CommonModule } from '@angular/common'; -import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation, booleanAttribute } from '@angular/core'; +import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, EventEmitter, Input, NgModule, Output, QueryList, TemplateRef, ViewEncapsulation, booleanAttribute } from '@angular/core'; import { BlockableUI, Footer, PrimeTemplate, SharedModule } from 'primeng/api'; import { MinusIcon } from 'primeng/icons/minus'; import { PlusIcon } from 'primeng/icons/plus'; @@ -211,7 +211,7 @@ export class Panel implements AfterContentInit, BlockableUI { return this.header; } - constructor(private el: ElementRef) {} + constructor(private el: ElementRef, private cd: ChangeDetectorRef) {} ngAfterContentInit() { (this.templates as QueryList).forEach((item) => { @@ -267,7 +267,8 @@ export class Panel implements AfterContentInit, BlockableUI { if (this.collapsed) this.expand(); else this.collapse(); } - + + this.cd.markForCheck() event.preventDefault(); } diff --git a/src/app/showcase/doc/panel/basicdoc.ts b/src/app/showcase/doc/panel/basicdoc.ts index 5bc1b7f02a..3c25d7d1fa 100644 --- a/src/app/showcase/doc/panel/basicdoc.ts +++ b/src/app/showcase/doc/panel/basicdoc.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { ChangeDetectorRef, Component, ViewChild } from '@angular/core'; import { Code } from '@domain/code'; @Component({ @@ -7,18 +7,34 @@ import { Code } from '@domain/code';

    A simple Panel is created with a header property along with the content as children.

    -
    - -

    +

    + + +
    + + Amy Elsner + +
    +
    +

    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 consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    +
    + ` }) export class BasicDoc { + @ViewChild('panel') panelEl: any; + constructor(private cd: ChangeDetectorRef) {} + toggle(e) { + this.panelEl.toggle(e); + this.cd.markForCheck(); + } + code: Code = { basic: `

    @@ -47,3 +63,4 @@ import { PanelModule } from 'primeng/panel'; export class PanelBasicDemo {}` }; } + From f646ffe8ccbd0ddf1d412277da596081202f99ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:09:47 +0300 Subject: [PATCH 14/42] Fixed #16326 - Panel component -> toggle from the outside --- src/app/showcase/doc/panel/basicdoc.ts | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/app/showcase/doc/panel/basicdoc.ts b/src/app/showcase/doc/panel/basicdoc.ts index 3c25d7d1fa..5bc1b7f02a 100644 --- a/src/app/showcase/doc/panel/basicdoc.ts +++ b/src/app/showcase/doc/panel/basicdoc.ts @@ -1,4 +1,4 @@ -import { ChangeDetectorRef, Component, ViewChild } from '@angular/core'; +import { Component } from '@angular/core'; import { Code } from '@domain/code'; @Component({ @@ -7,34 +7,18 @@ import { Code } from '@domain/code';

    A simple Panel is created with a header property along with the content as children.

    -
    - - -
    - - Amy Elsner - -
    -
    -

    +

    + +

    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 consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    -
    - ` }) export class BasicDoc { - @ViewChild('panel') panelEl: any; - constructor(private cd: ChangeDetectorRef) {} - toggle(e) { - this.panelEl.toggle(e); - this.cd.markForCheck(); - } - code: Code = { basic: `

    @@ -63,4 +47,3 @@ import { PanelModule } from 'primeng/panel'; export class PanelBasicDemo {}` }; } - From 5f215ec2c705287ac3b8cf0a8ec4f5de48f6efa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:26:21 +0300 Subject: [PATCH 15/42] Fixed #16335 - DynamicDialog | Closing nested dialog makes the underlying dialog scroll back to the top --- src/app/components/dynamicdialog/dynamicdialog-config.ts | 5 +++++ src/app/components/dynamicdialog/dynamicdialog.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/components/dynamicdialog/dynamicdialog-config.ts b/src/app/components/dynamicdialog/dynamicdialog-config.ts index c71db273c6..78108f6113 100755 --- a/src/app/components/dynamicdialog/dynamicdialog-config.ts +++ b/src/app/components/dynamicdialog/dynamicdialog-config.ts @@ -45,6 +45,11 @@ export class DynamicDialogConfig { * @group Props */ focusOnShow?: boolean = true; + /** + * Specifies if autofocus should happen on close. + * @group Props + */ + focusOnClose?: boolean = true; /** * When enabled, can only focus on elements inside the dialog. * @group Props diff --git a/src/app/components/dynamicdialog/dynamicdialog.ts b/src/app/components/dynamicdialog/dynamicdialog.ts index c2b1b622dd..4bda78bb47 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.ts @@ -383,7 +383,7 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { onAnimationEnd(event: AnimationEvent) { if (event.toState === 'void') { - if (this.parentContent) { + if (this.parentContent && this.config.focusOnClose !== false) { this.focus(this.parentContent); } this.onContainerDestroy(); From ff41820ac0ef8157a09cdb70cb132096ff91a709 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Tue, 3 Sep 2024 16:53:46 +0530 Subject: [PATCH 16/42] fix incorrect import in dynamicdialog --- src/app/showcase/doc/dynamicdialog/exampledoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/showcase/doc/dynamicdialog/exampledoc.ts b/src/app/showcase/doc/dynamicdialog/exampledoc.ts index 00b9861489..2ef7a1e394 100644 --- a/src/app/showcase/doc/dynamicdialog/exampledoc.ts +++ b/src/app/showcase/doc/dynamicdialog/exampledoc.ts @@ -74,7 +74,7 @@ export class ExampleDoc implements OnDestroy { typescript: `import { Component, OnDestroy } from '@angular/core'; import { MessageService } from 'primeng/api'; -import { DialogService, DynamicDialogModule, DynamicDialogRef } from 'primeng/dynamicdialog'; +import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog'; import { ProductListDemo } from './demo/productlistdemo'; import { Footer } from './demo/footer'; import { ToastModule } from 'primeng/toast'; From d903d8aa1df57ec8ec61cd63fd334fed7de9be01 Mon Sep 17 00:00:00 2001 From: heeenkie <35926672+heeenkie@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:28:20 +0200 Subject: [PATCH 17/42] Update tree.ts --- src/app/components/tree/tree.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 522c3ec96c..b9605684c8 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -153,6 +153,7 @@ import { [index]="index" [itemSize]="itemSize" [level]="level + 1" + [loadingMode]="loadingMode" >

From dcb03763926b251f13d6b04f3923eb381da55e37 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 5 Sep 2024 14:06:10 +0300 Subject: [PATCH 18/42] Disabled roadmap --- src/assets/showcase/data/menu.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/assets/showcase/data/menu.json b/src/assets/showcase/data/menu.json index 8d9e160b54..6d6ab403a1 100644 --- a/src/assets/showcase/data/menu.json +++ b/src/assets/showcase/data/menu.json @@ -584,10 +584,6 @@ "name": "About Us", "routerLink": "/team" }, - { - "name": "Roadmap", - "routerLink": "/roadmap" - }, { "name": "Source Code", "href": "https://github.com/primefaces/primeng" From d0ee93c948b318530dd71c18d7dd9db3a21a38e2 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 5 Sep 2024 14:13:39 +0300 Subject: [PATCH 19/42] Add news --- src/app/showcase/data/news.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/showcase/data/news.json b/src/app/showcase/data/news.json index 3a861c750f..4f6cc54008 100644 --- a/src/app/showcase/data/news.json +++ b/src/app/showcase/data/news.json @@ -1,6 +1,6 @@ { - "id": 65, - "content": "Summer Sale: Up to 50% Off 🛍️", - "linkText": "Visit Store", - "linkHref": "https://primefaces.org/store" + "id": 66, + "content": "🎉 v18-beta.1 is out now with new theming", + "linkText": "Learn More", + "linkHref": "https://v18.primefaces.org" } From bc7accdb6386d4da3ab5f55da4235959befc91b0 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Thu, 5 Sep 2024 14:21:00 +0300 Subject: [PATCH 20/42] Fixed link --- src/app/showcase/data/news.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/showcase/data/news.json b/src/app/showcase/data/news.json index 4f6cc54008..7e4f685bfe 100644 --- a/src/app/showcase/data/news.json +++ b/src/app/showcase/data/news.json @@ -2,5 +2,5 @@ "id": 66, "content": "🎉 v18-beta.1 is out now with new theming", "linkText": "Learn More", - "linkHref": "https://v18.primefaces.org" + "linkHref": "https://v18.primeng.org" } From 4bfa107e9b18c37de5eed3b14faf7e4a8f64ef94 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sun, 8 Sep 2024 01:02:51 +0900 Subject: [PATCH 21/42] chore: update accessibilitydoc.ts overriden -> overridden --- src/app/showcase/doc/multiselect/accessibilitydoc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/showcase/doc/multiselect/accessibilitydoc.ts b/src/app/showcase/doc/multiselect/accessibilitydoc.ts index 0cdc708379..a95e62617c 100644 --- a/src/app/showcase/doc/multiselect/accessibilitydoc.ts +++ b/src/app/showcase/doc/multiselect/accessibilitydoc.ts @@ -19,7 +19,7 @@ import { Code } from '@domain/code';

If filtering is enabled, filterInputProps can be defined to give aria-* props to the input element.

-

Close button uses close key of the aria property from the locale API as the aria-label by default, this can be overriden with the closeButtonProps.

+

Close button uses close key of the aria property from the locale API as the aria-label by default, this can be overridden with the closeButtonProps.

From 27dca933e3106ade1d3775765d3d8371b35055f3 Mon Sep 17 00:00:00 2001 From: Renan Vieira Date: Sun, 8 Sep 2024 13:57:03 -0300 Subject: [PATCH 22/42] Fixed #16114 - Editor | hide primeng toolbar when insert quill modules. --- src/app/components/editor/editor.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/components/editor/editor.ts b/src/app/components/editor/editor.ts index 2f8a19742e..29bd656ae1 100755 --- a/src/app/components/editor/editor.ts +++ b/src/app/components/editor/editor.ts @@ -41,7 +41,7 @@ export const EDITOR_VALUE_ACCESSOR: any = {
-
+