Skip to content

Commit

Permalink
Merge branch 'master' into issue-15115
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu authored Apr 18, 2024
2 parents cb8a83f + 2655361 commit 484f884
Show file tree
Hide file tree
Showing 264 changed files with 48,816 additions and 34,332 deletions.
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,66 @@
# Changelog
## [17.13.0](https://github.com/primefaces/primeng/tree/17.13.0) (2024-04-09)

[Full Changelog](https://github.com/primefaces/primeng/compare/17.12.0...17.13.0)
**Breaking Changes:**
- SplitButton | new input properties [\#14426](https://github.com/primefaces/primeng/issues/15220)

**Implemented New Features and Enhancements:**
- New Theme | Aura [\#15127](https://github.com/primefaces/primeng/issues/15127)
- Dropdown, MultiSelect | Accessibility Enhancements [\#15197](https://github.com/primefaces/primeng/issues/15197)
- SplitButton | add menuButtonDisabled and buttonDisabled inputs to manage disabled states of button and menu dropdown button [\#14600](https://github.com/primefaces/primeng/issues/14600)
- Incorrect type of InputNumberInputEvent.value [\#15206](https://github.com/primefaces/primeng/issues/15206)
- Showcase | Update to PrimeIcons 7.0.0 [\#15201](https://github.com/primefaces/primeng/issues/15201)
- p-calendar unable to select all times when time period is less than an hour [\#10358](https://github.com/primefaces/primeng/issues/10358)
- Paginator: The dropdownItemTemplate property can't be configured to target the "jump to page" dropdown instead of the "rows per page" dropdown [\#14269](https://github.com/primefaces/primeng/issues/14269)
- Calendar | enable minDate & maxDate to be nullable [\#15146](https://github.com/primefaces/primeng/issues/15146)
- Calendar | add option to start week numbers from first day of the year [\#12711](https://github.com/primefaces/primeng/issues/12711)
- Menu/TieredMenu: First Element focussed when opening by button trigger [\#13818](https://github.com/primefaces/primeng/issues/13818)
- DynamicDialog | Add child component reference on component load [\#15145](https://github.com/primefaces/primeng/issues/15145)
- Picklist: ul item lists are missing a label [\#14944](https://github.com/primefaces/primeng/issues/14944)
- Steps: Update link element attributes [\#15133](https://github.com/primefaces/primeng/issues/15133)
- Dialog: Missing Aria Label on Maximize button [\#14949](https://github.com/primefaces/primeng/issues/14949)
- Component: p-listbox missing aria-label [\#15084](https://github.com/primefaces/primeng/issues/15084)
- Component: TreeSelect with Virtual Scroll [\#13772](https://github.com/primefaces/primeng/issues/13772)

**Fixed bugs:**
- DynamicDialog: accessibility- CloseAriaLabel not working [\#15144](https://github.com/primefaces/primeng/issues/15144)
- Autocomplete: multiple and readonly still show button to remove options [\#15188](https://github.com/primefaces/primeng/issues/15188)
- Calendar: The ellipsis is not displayed when the placeholder is not fully visible [\#15168](https://github.com/primefaces/primeng/issues/15168)
- Component: Dropdown. After closing the overlay, the p-overflow-hidden class is not deleted if overlay mode is modal [\#15186](https://github.com/primefaces/primeng/issues/15186)
- MultiSelect: Pre-selected disabled options are deselected by filterting and clicking toggleAll (deselect) [\#15229](https://github.com/primefaces/primeng/issues/15229)
- Component: Table/Paginator - pageLinks/pageLinkSize do not affect number of page links after initialization [\#15231](https://github.com/primefaces/primeng/issues/15231)
- Flags icons for US is wrong [\#15231](https://github.com/primefaces/primeng/issues/15231)
- p-treeTableHeaderCheckbox doesn't select/unselect all when TreeTable has dataKey property [\#9188](https://github.com/primefaces/primeng/issues/9188)
- TreeTable | Partial selection doesn't work correctly on inital load. [\#15158](https://github.com/primefaces/primeng/issues/15158)
- InputOtp = > backspace key doesn't work @ Template [\#15200](https://github.com/primefaces/primeng/issues/15200)
- p-cascadeSelect options: not change after new data in array of options [\#14698](https://github.com/primefaces/primeng/issues/14698)
- InputOtp integerOnly= true => no response to the numeric keypad [\#15195](https://github.com/primefaces/primeng/issues/15195)
- p-fileUpload auto file upload not working in advanced mode [\#15150](https://github.com/primefaces/primeng/issues/15150)
- Component: MultiSelect use listitem semantically [\#15002](https://github.com/primefaces/primeng/issues/15002)
- Component: MultiSelect aria required children [\#15001](https://github.com/primefaces/primeng/issues/15001)
- Multiselect: aria attributes should not be set on li elements [\#14946](https://github.com/primefaces/primeng/issues/14946)
- Multi select dropdown multiSelectItem missing role='option'. [\#14958](https://github.com/primefaces/primeng/issues/14958)
- Component: p-dropdown [\#15112](https://github.com/primefaces/primeng/issues/15112)
- Component: Dropdown | dropdown box missing the required children for the given role. [\#15123](https://github.com/primefaces/primeng/issues/15123)
- Component: Dropdown | ARIA hidden element must not be focusable or contain focusable elements [\#15116](https://github.com/primefaces/primeng/issues/15116)
- Update broken styles of stepper [\#15173](https://github.com/primefaces/primeng/issues/15173)
- Input properties defined using the setter/getter are not properly documented [\#14770](https://github.com/primefaces/primeng/issues/14770)
- TreeTable | wrong value comparison [\#15178](https://github.com/primefaces/primeng/issues/15178)
- Component: Table & Scroller [\#14205](https://github.com/primefaces/primeng/issues/14205)
- p-dropdown: Missing ariaLabel when in editable = true [\#15122](https://github.com/primefaces/primeng/issues/15122)
- Calendar: Showing start Date instead of end Date when set two dates for the data binding property [\#13953](https://github.com/primefaces/primeng/issues/13953)
- Multiselect: Accesibility - no label for "toggle all" div and "filter" text box [\#14945](https://github.com/primefaces/primeng/issues/14945)
- Calendar | onTodayClick emits wrong value [\#15148](https://github.com/primefaces/primeng/issues/15148)
- Panelmenu: Issue with navigating by Tab through submenu items [\#13630](https://github.com/primefaces/primeng/issues/13630)
- Component: InputNumber with maxlength attribute [\#13704](https://github.com/primefaces/primeng/issues/13704)
- p-tag: style not change dynamically [\#12665](https://github.com/primefaces/primeng/issues/12665)
- Table: When removing the filter constraint it should not filter when showApplyButton is visible [\#15032](https://github.com/primefaces/primeng/issues/15032)
- FileUpload: Missing form label (a11y) [\#15137](https://github.com/primefaces/primeng/issues/15137)
- InputOpt: IntegerOnly does not work with numpad [\#15129](https://github.com/primefaces/primeng/issues/15129)
- p-calendar in range mode does not allow manually typing single date [\#14590](https://github.com/primefaces/primeng/issues/14590)
- p-calendar in range mode does not allow manually typing in same start and end date [\#12286](https://github.com/primefaces/primeng/issues/12286)

## [17.12.0](https://github.com/primefaces/primeng/tree/17.12.0) (2024-03-21)

[Full Changelog](https://github.com/primefaces/primeng/compare/17.11.0...17.12.0)
Expand Down Expand Up @@ -424,6 +486,12 @@
- 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.7-LTS](https://www.npmjs.com/package/primeng/v/16.9.7-lts) (2024-03-29)

**Fixed bugs:**
- Major bug p-dropdown in latest LTS version! [\#15026](https://github.com/primefaces/primeng/issues/15026)


## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [16.9.6-LTS](https://www.npmjs.com/package/primeng/v/16.9.6-lts) (2024-03-07)

**Implemented New Features and Enhancements:**
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG_ARCHIVE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- FileUpload - long filename [\#10275](https://github.com/primefaces/primeng/issues/10275)
- Sidebar wrong animation and close button display [\#10261](https://github.com/primefaces/primeng/issues/10261)


## ![LTS](https://www.primefaces.org/wp-content/uploads/2020/01/lts-icon-24.png "PrimeNG LTS") [10.1.4-LTS](https://www.npmjs.com/package/primeng-lts/v/10.1.4) (2021-10-18)
- float-label chips problem [\#10725](https://github.com/primefaces/primeng/issues/10725)
- pButton Directive throws error when label is set when async pipe [\#10719](https://github.com/primefaces/primeng/issues/10719)
Expand Down
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@
}
},
"cli": {
"analytics": false
"analytics": false
}
}
24 changes: 12 additions & 12 deletions api-generator/build-apidoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ async function main() {
return text.replace(/{/g, '{').replace(/}/g, '}');
};

const getDeprecatedText = (signature) => {
const deprecatedTag = signature?.comment?.getTag('@deprecated');
return deprecatedTag ? parseText(deprecatedTag.content[0].text) : undefined;
};

const modules = project.groups.find((g) => g.title === 'Modules');

if (isProcessable(modules)) {
Expand Down Expand Up @@ -89,13 +94,8 @@ async function main() {
readonly: prop.flags.isReadonly,
type: prop.getSignature && prop.getSignature.type ? prop.getSignature.type.toString() : prop.type ? prop.type.toString() : null,
default: prop.type && prop.type.name === 'boolean' && !prop.defaultValue ? 'false' : prop.defaultValue ? prop.defaultValue.replace(/^'|'$/g, '') : undefined,
description: prop.getSignature && prop.getSignature.comment ? prop.getSignature.comment.summary.map((s) => s.text || '').join(' ') : prop.comment && prop.comment.summary.map((s) => s.text || '').join(' '),
deprecated:
prop.getSignature && prop.getSignature.comment && prop.getSignature.comment.getTag('@deprecated')
? parseText(prop.getSignature.comment.getTag('@deprecated').content[0].text)
: prop.comment && prop.comment.getTag('@deprecated')
? parseText(prop.comment.getTag('@deprecated').content[0].text)
: undefined
description: (prop.getSignature?.comment?.summary || prop.setSignature?.comment?.summary || prop.comment?.summary)?.map((s) => s.text || '').join(' '),
deprecated: getDeprecatedText(prop.getSignature) || getDeprecatedText(prop.setSignature) || getDeprecatedText(prop)
});
});
doc[name]['components'][componentName]['props'] = props;
Expand All @@ -113,7 +113,7 @@ async function main() {
name: emitter.name,
parameters: [{ name: extractParameter(emitter) && extractParameter(emitter).includes('Event') ? 'event' : 'value', type: extractParameter(emitter) }],
description: emitter.comment && emitter.comment.summary.map((s) => s.text || '').join(' '),
deprecated: emitter.comment && emitter.comment.getTag('@deprecated') ? parseText(emitter.comment.getTag('@deprecated').content[0].text) : undefined
deprecated: getDeprecatedText(emitter)
});
});

Expand Down Expand Up @@ -164,7 +164,7 @@ async function main() {
readonly: child.flags.isReadonly,
type: child.type && child.type.toString(),
description: child.comment && child.comment.summary.map((s) => s.text || '').join(' '),
deprecated: child.comment && child.comment.getTag('@deprecated') ? parseText(child.comment.getTag('@deprecated').content[0].text) : undefined
deprecated: getDeprecatedText(child)
}))
});
});
Expand Down Expand Up @@ -192,7 +192,7 @@ async function main() {
readonly: child.flags.isReadonly,
type: child.type && child.type.toString(),
description: child.comment && child.comment.summary.map((s) => s.text || '').join(' '),
deprecated: child.comment && child.comment.getTag('@deprecated') ? parseText(child.comment.getTag('@deprecated').content[0].text) : undefined
deprecated: getDeprecatedText(child)
}))
});
});
Expand Down Expand Up @@ -243,7 +243,7 @@ async function main() {
};
}),
description: signature.comment && signature.comment.summary.map((s) => s.text || '').join(' '),
deprecated: signature.comment && signature.comment.getTag('@deprecated') ? parseText(signature.comment.getTag('@deprecated').content[0].text) : undefined
deprecated: getDeprecatedText(signature)
});
});
});
Expand All @@ -269,7 +269,7 @@ async function main() {
readonly: child.flags.isReadonly,
type: child.type ? child.type.toString() : extractParameter(int),
description: child.comment && child.comment.summary.map((s) => s.text || '').join(' '),
deprecated: child.comment && child.comment.getTag('@deprecated') ? parseText(child.comment.getTag('@deprecated').content[0].text) : undefined
deprecated: getDeprecatedText(child)
}))
});
});
Expand Down
17 changes: 9 additions & 8 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primeng",
"version": "17.12.0",
"version": "17.13.0",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"ng": "ng",
Expand All @@ -22,6 +22,7 @@
"type": "git",
"url": "https://github.com/primefaces/primeng.git"
},
"type": "module",
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.1",
"@angular-eslint/eslint-plugin": "17.3.0",
Expand Down Expand Up @@ -56,7 +57,7 @@
"eslint-plugin-import": "latest",
"eslint-plugin-jsdoc": "latest",
"eslint-plugin-prefer-arrow": "latest",
"express": "^4.18.2",
"express": "^4.19.2",
"file-saver": "^2.0.5",
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
Expand All @@ -75,7 +76,7 @@
"ng-packagr": "^17.2.0",
"prettier": "2.8.8",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primeicons": "^7.0.0",
"prismjs": "^1.29.0",
"quill": "1.3.7",
"rxjs": "~7.8.1",
Expand Down
14 changes: 8 additions & 6 deletions src/app/components/accordion/accordion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import {
QueryList,
TemplateRef,
ViewEncapsulation,
forwardRef
booleanAttribute,
forwardRef,
numberAttribute
} from '@angular/core';
import { BlockableUI, Header, PrimeTemplate, SharedModule } from 'primeng/api';
import { DomHandler } from 'primeng/dom';
Expand Down Expand Up @@ -158,12 +160,12 @@ export class AccordionTab implements AfterContentInit, OnDestroy {
* Whether the tab is disabled.
* @group Props
*/
@Input() disabled: boolean | undefined;
@Input({ transform: booleanAttribute }) disabled: boolean | undefined;
/**
* Whether a lazy loaded panel should avoid getting loaded again on reselection.
* @group Props
*/
@Input() cache: boolean = true;
@Input({ transform: booleanAttribute }) cache: boolean = true;
/**
* Transition options of the animation.
* @group Props
Expand Down Expand Up @@ -196,7 +198,7 @@ export class AccordionTab implements AfterContentInit, OnDestroy {
* The aria-level that each accordion header will have. The default value is 2 as per W3C specifications
* @group Props
*/
@Input() headerAriaLevel: number = 2;
@Input({ transform: numberAttribute }) headerAriaLevel: number = 2;
/**
* Event triggered by changing the choice.
* @param {boolean} value - Boolean value indicates that the option is changed.
Expand Down Expand Up @@ -349,7 +351,7 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy {
* When enabled, multiple tabs can be activated at the same time.
* @group Props
*/
@Input() multiple: boolean = false;
@Input({ transform: booleanAttribute }) multiple: boolean = false;
/**
* Inline style of the tab header and content.
* @group Props
Expand Down Expand Up @@ -390,7 +392,7 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy {
* When enabled, the focused tab is activated.
* @group Props
*/
@Input() selectOnFocus: boolean = false;
@Input({ transform: booleanAttribute }) selectOnFocus: boolean = false;
/**
* The aria-level that each accordion header will have. The default value is 2 as per W3C specifications
* @group Props
Expand Down
Loading

0 comments on commit 484f884

Please sign in to comment.