Skip to content

Commit

Permalink
Merge branch 'master' into issue-13784
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMessall committed Oct 15, 2023
2 parents 2fc3760 + c79ca2a commit 2c74146
Show file tree
Hide file tree
Showing 902 changed files with 8,425 additions and 22,747 deletions.
56 changes: 56 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 Expand Up @@ -322,6 +352,19 @@
- Checkbox in p-treeNode always checked when using custom icon [\#12951](https://github.com/primefaces/primeng/issues/12951)
- ConfirmDialog: Duplicated AcceptIcons [\#13001](https://github.com/primefaces/primeng/issues/13001)

## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [15.4.10-LTS](https://www.npmjs.com/package/primeng/v/15.4.10-lts) (2023-10-04)
**Fixed bugs:**
- Autocomplete Force Selection case sensitive issue [\#13578](https://github.com/primefaces/primeng/issues/13578)
- Component: Carousel add better playing status support [\#12706](https://github.com/primefaces/primeng/issues/12706)
- p-calendar: Cannot read properties of undefined (reading 'length') [\#13348](https://github.com/primefaces/primeng/issues/13348)
- DropDown filter search not trimming text and search showing empty [\#13559](https://github.com/primefaces/primeng/issues/13559)
- InputNumber - showClear icon not showing when value is "0" [\#13525](https://github.com/primefaces/primeng/issues/13525)
- fileUpload: choose button is disabled after upload when you chose more files than the file limit [\#13566](https://github.com/primefaces/primeng/issues/13566)
- Component: Pick List [\#13513](https://github.com/primefaces/primeng/issues/13513)
- AutoComplete showClear close icon overlap with loader icon [\#13572](https://github.com/primefaces/primeng/issues/13572)
- calendar year view not work with *maxDate* and *minDate* not working [\#13583](https://github.com/primefaces/primeng/issues/13583)
- Calendar: onModelChange not called with keepInvalid=true if user enters a well-formatted date but outside allowed range [\#13132](https://github.com/primefaces/primeng/issues/13132)

## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [15.4.9-LTS](https://www.npmjs.com/package/primeng/v/15.4.9-lts) (2023-08-30)
**Fixed bugs:**
- Image Component: esc button doesn't close the preview [\#13305](https://github.com/primefaces/primeng/issues/13305)
Expand Down Expand Up @@ -579,6 +622,19 @@
- Sidebar: Footer Templating [\#12259](https://github.com/primefaces/primeng/issues/12259)
- Calendar: Day names don't update [\#12148](https://github.com/primefaces/primeng/issues/12148)

## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [14.2.13-LTS](https://www.npmjs.com/package/primeng/v/14.2.13-lts) (2023-10-04)
**Fixed bugs:**
- Calendar: onModelChange not called with keepInvalid=true if user enters a well-formatted date but outside allowed range [\#13132](https://github.com/primefaces/primeng/issues/13132)
- calendar year view not work with *maxDate* and *minDate* not working [\#13583](https://github.com/primefaces/primeng/issues/13583)
- p-calendar: Cannot read properties of undefined (reading 'length') [\#13348](https://github.com/primefaces/primeng/issues/13348)
- Component: Pick List [\#13513](https://github.com/primefaces/primeng/issues/13513)
- AutoComplete showClear close icon overlap with loader icon [\#13572](https://github.com/primefaces/primeng/issues/13572)
- fileUpload: choose button is disabled after upload when you chose more files than the file limit [\#13566](https://github.com/primefaces/primeng/issues/13566)
- Component: Carousel add better playing status support [\#12706](https://github.com/primefaces/primeng/issues/12706)
- InputNumber - showClear icon not showing when value is "0" [\#13525](https://github.com/primefaces/primeng/issues/13525)
- Dropdown: Escape Key event not default prevented [\#13463](https://github.com/primefaces/primeng/issues/13463)
- p-splitter: nested panels should have min-width: 0 to leverage flex-basis correctly [\#13323](https://github.com/primefaces/primeng/issues/13323)

## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [14.2.12-LTS](https://www.npmjs.com/package/primeng/v/14.2.12-lts) (2023-08-30)
- DropDown filter search not trimming text and search showing empty [\#13559](https://github.com/primefaces/primeng/issues/13559)
- Autocomplete Force Selection case sensitive issue [\#13578](https://github.com/primefaces/primeng/issues/13578)
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
6 changes: 5 additions & 1 deletion src/app/components/api/tooltipoptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface TooltipOptions {
*/
tooltipPosition?: 'right' | 'left' | 'top' | 'bottom';
/**
* Position of tooltip.
* Event to show the tooltip.
*/
tooltipEvent?: 'hover' | 'focus';
/**
Expand Down 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 2c74146

Please sign in to comment.