Skip to content

Commit

Permalink
Merge branch 'master' into issue-13821
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMessall committed Oct 15, 2023
2 parents 7979e27 + c79ca2a commit 01f06f2
Show file tree
Hide file tree
Showing 143 changed files with 6,681 additions and 20,981 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## [16.5.0](https://github.com/primefaces/primeng/tree/16.5.0) (2023-10-11)

[Full Changelog](https://github.com/primefaces/primeng/compare/16.4.1...16.5.0)

**Deprecated:**
- SlideMenu: Deprecate from PrimeNG [\#13830](https://github.com/primefaces/primeng/issues/13830)
- Remove FullCalendar theme support [\#13834](https://github.com/primefaces/primeng/issues/13834)

**Implemented New Features and Enhancements:**
- Button: New props [\#13851](https://github.com/primefaces/primeng/issues/13851)
- SelectButton: Add allowEmpty property [\#13853](https://github.com/primefaces/primeng/issues/13853)
- Accessibility | Step component bugs and improvements [\#13742](https://github.com/primefaces/primeng/issues/13742)
- Tooltip: Accessibility role not available [\#13843](https://github.com/primefaces/primeng/issues/13843)
- Improve block/unblockScroll architecture [\#13855](https://github.com/primefaces/primeng/issues/13855)

**Fixed bugs:**

- Toolbar: Inconsistent naming and wrong documentation [\#13814](https://github.com/primefaces/primeng/issues/13814)
- Password | Incorrect placement of close icon when toggleMask="true" [\#13817](https://github.com/primefaces/primeng/issues/13817)
- Tooltip: disable autoHide doesn't work [\#13828](https://github.com/primefaces/primeng/issues/13828)
- Multiselect: Chips: Delete button not visible if label is too wide [\#13816](https://github.com/primefaces/primeng/issues/13816)
- BlockUI: Mask is not applied when blocked changes rapidly [\#11838](https://github.com/primefaces/primeng/issues/11838)
- panelMenu- sub MenuItem is disabled but still it can be clickable and expandable [\#13827](https://github.com/primefaces/primeng/issues/13827)
- Multiselect: Incorrect view with selected items [\#13654](https://github.com/primefaces/primeng/issues/13654)
- there is a missed "break;" line in a switch case in menu.ts at line 540 [\#13766](https://github.com/primefaces/primeng/issues/13766)
- SSR fails on carousel circular and galleria autoplay [\#13837](https://github.com/primefaces/primeng/issues/13837)
- Editor layer defect [\#13831](https://github.com/primefaces/primeng/issues/13831)
- p-dialog: ExpressionChangedAfterItHasBeenCheckedError with attr.aria-labelledby [\#13636](https://github.com/primefaces/primeng/issues/13636)
- Textarea: autoResize doesn't work when used inside a Dialog [\#9231](https://github.com/primefaces/primeng/issues/9231)

## [16.4.1](https://github.com/primefaces/primeng/tree/16.4.1) (2023-09-27)

[Full Changelog](https://github.com/primefaces/primeng/compare/16.4.0...16.4.1)
Expand Down
35 changes: 25 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primeng",
"version": "16.4.1",
"version": "16.5.0",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -93,7 +93,6 @@
"zone.js": "~0.13.0"
},
"dependencies": {
"@docsearch/js": "^3.3.4",
"@types/react": "^18.0.28"
"@docsearch/js": "^3.3.4"
}
}
2 changes: 1 addition & 1 deletion src/app/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export class AccordionTab implements AfterContentInit, OnDestroy {
this.accordion.updateActiveIndex();
this.changeDetector.markForCheck();

event.preventDefault();
event?.preventDefault();
}

findTabIndex() {
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/api/tooltipoptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@ export interface TooltipOptions {
* Time to wait in milliseconds to hide the tooltip even it is active.
*/
life?: number;
/**
* When present, it adds a custom id to the tooltip.
*/
id?: string;
}
8 changes: 3 additions & 5 deletions src/app/components/blockui/blockui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ export class BlockUI implements AfterViewInit, OnDestroy {
this.target.getBlockableElement().style.position = 'relative';
} else {
this.renderer.appendChild(this.document.body, (this.mask as ElementRef).nativeElement);
DomHandler.addClass(this.document.body, 'p-overflow-hidden');
this.document.body.style.setProperty('--scrollbar-width', DomHandler.calculateScrollbarWidth() + 'px');
DomHandler.blockBodyScroll();
}

if (this.autoZIndex) {
Expand All @@ -117,7 +116,7 @@ export class BlockUI implements AfterViewInit, OnDestroy {
}

unblock() {
if (this.mask) {
if (this.mask && !this.animationEndListener) {
this.animationEndListener = this.renderer.listen(this.mask.nativeElement, 'animationend', this.destroyModal.bind(this));
DomHandler.addClass(this.mask.nativeElement, 'p-component-overlay-leave');
}
Expand All @@ -129,8 +128,7 @@ export class BlockUI implements AfterViewInit, OnDestroy {
ZIndexUtils.clear(this.mask.nativeElement);
DomHandler.removeClass(this.mask.nativeElement, 'p-component-overlay-leave');
this.renderer.removeChild(this.el.nativeElement, this.mask.nativeElement);
DomHandler.removeClass(this.document.body, 'p-overflow-hidden');
this.document.body.style.removeProperty('--scrollbar-width');
DomHandler.unblockBodyScroll();
}
this.unbindAnimationEndListener();
this.cd.markForCheck();
Expand Down
51 changes: 50 additions & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,46 @@ export class Button implements AfterContentInit {
* @group Props
*/
@Input() loadingIcon: string | undefined;
/**
* Add a shadow to indicate elevation.
* @group Props
*/
@Input() raised: boolean = false;
/**
* Add a circular border radius to the button.
* @group Props
*/
@Input() rounded: boolean = false;
/**
* Add a textual class to the button without a background initially.
* @group Props
*/
@Input() text: boolean = false;
/**
* Add a plain textual class to the button without a background initially.
* @group Props
*/
@Input() plain: boolean = false;
/**
* Defines the style of the button.
* @group Props
*/
@Input() severity: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | string | undefined;
/**
* Add a border class without a background initially.
* @group Props
*/
@Input() outlined: boolean = false;
/**
* Add a link style to the button.
* @group Props
*/
@Input() link: boolean = false;
/**
* Defines the size of the button.
* @group Props
*/
@Input() size: 'small' | 'large' | undefined;
/**
* Inline style of the element.
* @group Props
Expand Down Expand Up @@ -393,7 +433,16 @@ export class Button implements AfterContentInit {
'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-loading-label-only': this.loading && !this.icon && this.label && !this.loadingIcon && this.iconPos === 'left',
'p-button-link': this.link,
[`p-button-${this.severity}`]: this.severity,
'p-button-raised': this.raised,
'p-button-rounded': this.rounded,
'p-button-text': this.text,
'p-button-outlined': this.outlined,
'p-button-sm': this.size === 'small',
'p-button-lg': this.size === 'large',
'p-button-plain': this.plain
};
}

Expand Down
6 changes: 2 additions & 4 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2819,8 +2819,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
this.disableModality();
});
this.renderer.appendChild(this.document.body, this.mask);
DomHandler.addClass(this.document.body, 'p-overflow-hidden');
this.document.body.style.setProperty('--scrollbar-width', DomHandler.calculateScrollbarWidth() + 'px');
DomHandler.blockBodyScroll();
}
}

Expand Down Expand Up @@ -2849,8 +2848,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
}

if (!hasBlockerMasks) {
DomHandler.removeClass(this.document.body, 'p-overflow-hidden');
this.document.body.style.removeProperty('--scrollbar-width');
DomHandler.blockBodyScroll();
}

this.unbindAnimationEndListener();
Expand Down
Loading

0 comments on commit 01f06f2

Please sign in to comment.