diff --git a/CHANGELOG.md b/CHANGELOG.md index 26965b13148..d45c95a24e5 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,47 @@ # Changelog +## [17.15.0](https://github.com/primefaces/primeng/tree/17.15.0) (2024-04-26) +[Full Changelog](https://github.com/primefaces/primeng/compare/17.14.1...17.15.0) + +**Deprecated:** +- MultiSelect | Deprecate checkicon template [\#15374](https://github.com/primefaces/primeng/issues/15374) + +**Implemented New Features and Enhancements:** +- MultiSelect | Add new checkbox templates [\#15373](https://github.com/primefaces/primeng/issues/15373) +- Autocomplete: optionValue support [\#14599](https://github.com/primefaces/primeng/issues/14599) + +**Fixed bugs:** +- Component: colorPicker - color not updated in selection square with reactive forms [\#15266](https://github.com/primefaces/primeng/issues/15266) +- Component: Checkbox; Array value not working when using with formControlName [\#15185](https://github.com/primefaces/primeng/issues/15185) +- Component: p-fileUpload mode=advanced auto=true not uploading on select [\#15212](https://github.com/primefaces/primeng/issues/15212) +- Dropdown: 'Enter' from numeric pad does not select option [\#15016](https://github.com/primefaces/primeng/issues/15016) +- Component: TreeSelect onFilter returned object [\#15379](https://github.com/primefaces/primeng/issues/15379) +- p-calendar "Date After" filters do not exclude date inclusive [\#14886](https://github.com/primefaces/primeng/issues/14886) +- Dialog: Dialog moves to another position instead of closing after pressing close button [\#15022](https://github.com/primefaces/primeng/issues/15022) +- FilterService: match modes "equals" and "not equals" do not work with numeric filter on fractional values [\#14978](https://github.com/primefaces/primeng/issues/14978) +- TreeSelect Disabled State Not Updating Properly [\#15378](https://github.com/primefaces/primeng/issues/15378) +- Treeselect: Scroll height should be removed when there are no result in treeselect-items. [\#15349](https://github.com/primefaces/primeng/issues/15349) +- Component: KeyFilter [\#14639](https://github.com/primefaces/primeng/issues/14639) +- Menubar: Enter key moves focus at first menuitem [\#15040](https://github.com/primefaces/primeng/issues/15040) +- Fileupload breaks http requests interceptor cycle when imported in a standalone context [\#15360](https://github.com/primefaces/primeng/issues/15360) +- Divider: dotted vertical divider is not working [\#15350](https://github.com/primefaces/primeng/issues/15350) +- SpeedDial: Non-linear menu items are misaligned [\#15367](https://github.com/primefaces/primeng/issues/15367) +- Table: Column resize not working on Ipads/Tablets [\#14803](https://github.com/primefaces/primeng/issues/14803) +- Table: breakpoint property has wrong default value [\#15306](https://github.com/primefaces/primeng/issues/15306) +- Component: Table #15302 [\#15303](https://github.com/primefaces/primeng/issues/15303) +- p-editor only shows unstyled buttons when it's inside of p-sidebar [\#15297](https://github.com/primefaces/primeng/issues/15297) +- Tooltip does not hide on multiSelect clear [\#15304](https://github.com/primefaces/primeng/issues/15304) +- Component: Card [\#15013](https://github.com/primefaces/primeng/issues/15013) + ## [17.14.1](https://github.com/primefaces/primeng/tree/17.14.1) (2024-04-19) [Full Changelog](https://github.com/primefaces/primeng/compare/17.14.0...17.14.1) + **Fixed bugs:** - Stepper | Core css is overriden and broken [\#15317](https://github.com/primefaces/primeng/issues/15317) ## [17.14.0](https://github.com/primefaces/primeng/tree/17.14.0) (2024-04-19) [Full Changelog](https://github.com/primefaces/primeng/compare/17.13.0...17.14.0) -**Breaking Changes:** +**Deprecated:** - Badge | Deprecate "size" property [\#15314](https://github.com/primefaces/primeng/issues/15314) **Implemented New Features and Enhancements:** @@ -779,6 +813,14 @@ - 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.4](https://github.com/primefaces/primeng/tree/16.4.4) (2024-04-26) + +[Full Changelog](https://github.com/primefaces/primeng/compare/16.4.3...16.4.4) + +**Fixed bugs:** +- TreeTable | selectionKeys support for checkbox selection mode [\#15216](https://github.com/primefaces/primeng/issues/15216) +- p-treeTableHeaderCheckbox doesn't select/unselect all when TreeTable has dataKey property [\#9188](https://github.com/primefaces/primeng/issues/9188) + ## [16.4.3](https://github.com/primefaces/primeng/tree/16.4.3) (2024-01-04) [Full Changelog](https://github.com/primefaces/primeng/compare/16.4.2...16.4.3) diff --git a/LICENSE.md b/LICENSE.md index c6d6640d34c..999fb85bfeb 100755 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,7 +2,7 @@ The MIT License (MIT) -Copyright (c) 2016-2022 PrimeTek +Copyright (c) 2016-2024 PrimeTek Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -30,59 +30,46 @@ The term “Software” includes all source and object code, in whole and/or par ## Summary -* Can be used on unlimited sites and servers -* Source-code cannot be resold or distributed -* Commercial use allowed -* Can modify source-code but cannot distribute modifications (derivative works) +- Can be used on unlimited sites and servers +- Source-code cannot be resold or distributed +- Commercial use allowed +- Can modify source-code but cannot distribute modifications (derivative works) ## Terms and Conditions 1. **License Grant:** Licensor hereby grants Licensee a Personal, Non-assignable and non-transferable, Commercial, Royalty free, Including the rights to create but not distribute derivative works, Non-exclusive license identified with a unique key stated in section 3, all with accordance with the terms set forth and other legal restrictions set forth in 3rd party software used while running Software. - + 1. **Limited:** Licensee may use Software for the purpose of: - + 1. Running Software on Licensee’s Website\[s\] and Server\[s\]; 2. Allowing 3rd Parties to run Software on Licensee’s Website\[s\] and Server\[s\]; 3. Publishing Software’s output to Licensee and 3rd Parties; 4. Distribute verbatim copies of Software’s output (including compiled binaries); 5. Modify Software to suit Licensee’s needs and specifications. + 2. **Non Assignable and Non-Transferable:** Licensee may not assign or transfer his rights and duties under this license. - 3. **Commercial, Royalty Free:** Licensee may use Software for any purpose, including paid-services, without any royalties - 4. **Including the Right to Create Derivative Works:** Licensee may create derivative works based on Software, including amending Software’s source code, modifying it, integrating it into a larger work or removing portions of Software, as long as no distribution of the derivative works is made - + 2. **Term & Termination:** The Term of this license shall be until terminated. Licensor may terminate this Agreement, including Licensee’s license in the case where Licensee : 1. became insolvent or otherwise entered into any liquidation process; or - 2. exported The Software to any jurisdiction where licensor may not enforce his rights under this agreements in; or - 3. Licensee was in breach of any of this license's terms and conditions and such breach was not cured, immediately upon notification; or - 4. Licensee in breach of any of the terms of clause 2 to this license; or - 5. Licensee otherwise entered into any arrangement which caused Licensor to be unable to enforce his rights under this License. - 3. **Payment:** In consideration of the License granted under clause 2, Licensee shall pay Licensor a fee, via credit card or any other mean which Licensor may deem adequate. Failure to perform payment shall construe as material breach of this Agreement. Transaction id of the payment is the unique license key granted to Licensee. 4. **Upgrades, Updates and Fixes:** . - + 1. **Fix:** for the purpose of this license, a fix shall be a minor amendment in The Software, intended to remove bugs or alter minor features which impair the The Software's functionality. A fix shall be marked as a new sub-sub-version number. For example, should Licensee purchase Software under version 1.1.1, an upgrade shall commence under number 1.1.2. - + 5. **Support:** Software is provided under an AS-IS basis and without any support, updates or maintenance. Nothing in this Agreement shall require Licensor to provide Licensee with support or fixes to any bug, failure, mis-performance or other defect in The Software. - 6. **Liability:** To the extent permitted under Law, The Software is provided under an AS-IS basis. Licensor shall never, and without any limit, be liable for any damage, cost, expense or any other payment incurred by Licesee as a result of Software’s actions, failure, bugs and/or any other interaction between The Software and Licesee’s end-equipment, computers, other software or any 3rd party, end-equipment, computer or services. Moreover, Licensor shall never be liable for any defect in source code written by Licensee when relying on The Software or using The Software’s source code. - 7. **Warranty:** - + 1. **Intellectual Property:** Licensor hereby warrants that The Software does not violate or infringe any 3rd party claims in regards to intellectual property, patents and/or trademarks and that to the best of its knowledge no legal action has been taken against it for any infringement or violation of any 3rd party intellectual property rights. - 2. **No-Warranty:** The Software is provided without any warranty; Licensor hereby disclaims any warranty that The Software shall be error free, without defects or code which may cause damage to Licensee’s computers or to Licensee, and that Software shall be functional. Licensee shall be solely liable to any damage, defect or loss incurred as a result of operating software and undertake the risks contained in running The Software on License’s Server\[s\] and Website\[s\]. - 3. **Prior Inspection:** Licensee hereby states that he inspected The Software thoroughly and found it satisfactory and adequate to his needs, that it does not interfere with his regular operation and that it does meet the standards and scope of his computer systems and architecture. Licensee found that The Software interacts with his development, website and server environment and that it does not infringe any of End User License Agreement of any software Licensee may use in performing his services. Licensee hereby waives any claims regarding The Software's incompatibility, performance, results and features, and warrants that he inspected the The Software. - + 8. **No Refunds:** Licensee warrants that he inspected The Software according to clause 7(c) and that it is adequate to his needs. Accordingly, as The Software is intangible goods, Licensee shall not be, ever, entitled to any refund, rebate, compensation or restitution for any reason whatsoever, even if The Software contains material flaws. - 9. **Indemnification:** Licensee hereby warrants to hold Licensor harmless and indemnify Licensor for any lawsuit brought against it in regards to Licensee’s use of The Software in means that violate, breach or otherwise circumvent this license, Licensor's intellectual property rights or Licensor's title in The Software. Licensor shall promptly notify Licensee in case of such legal action and request Licensee’s consent prior to any settlement in relation to such lawsuit or claim. - -10. **Governing Law, Jurisdiction:** Licensee hereby agrees not to initiate class-action lawsuits against Licensor in relation to this license and to compensate Licensor for any legal fees, cost or attorney fees should any claim brought by Licensee against Licensor be denied, in part or in full. - +10. **Governing Law, Jurisdiction:** Licensee hereby agrees not to initiate class-action lawsuits against Licensor in relation to this license and to compensate Licensor for any legal fees, cost or attorney fees should any claim brought by Licensee against Licensor be denied, in part or in full. diff --git a/angular.json b/angular.json index 7673791eebf..c67b15de71b 100644 --- a/angular.json +++ b/angular.json @@ -63,6 +63,10 @@ "rgbcolor" ], "server": "src/main.server.ts", + "prerender": { + "discoverRoutes": false, + "routesFile": "routes.txt" + }, "ssr": { "entry": "server.ts" } diff --git a/package-lock.json b/package-lock.json index fd49c715bb6..2d2912363aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "primeng", - "version": "17.13.0", + "version": "17.15.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "primeng", - "version": "17.13.0", + "version": "17.15.0", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@angular-devkit/build-angular": "^17.3.1", diff --git a/package.json b/package.json index 9866c562398..c3c30a4251f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "primeng", - "version": "17.14.1", + "version": "17.15.0", "license": "SEE LICENSE IN LICENSE.md", "scripts": { "ng": "ng", @@ -10,13 +10,13 @@ "e2e": "ng e2e", "lint": "ng lint", "format": "prettier --write \"**/*.{js,ts,d.ts}\"", + "build": "ng build", "format:check": "prettier --check \"**/*.{js,ts,d.ts}\"", "build:lib": "npm run build:check && npm run build:package", "build:package": "BROWSERSLIST_ENV=library ng build primeng-library && gulp build-assets", "build:check": "npm run format:check && npm run security:check", "security:check": "npm audit --production --audit-level high", - "apidoc": "node ./api-generator/build-apidoc.ts", - "vercel-build": "ng build" + "apidoc": "node ./api-generator/build-apidoc.ts" }, "repository": { "type": "git", diff --git a/routes.txt b/routes.txt new file mode 100644 index 00000000000..3f3eac8186f --- /dev/null +++ b/routes.txt @@ -0,0 +1,130 @@ +/ +/accordion +/animateonscroll +/autocomplete +/autofocus +/avatar +/badge +/blockui +/breadcrumb +/button +/calendar +/card +/carousel +/cascadeselect +/chart +/checkbox +/chip +/chips +/colorpicker +/colors +/configuration +/confirmdialog +/confirmpopup +/contextmenu +/customicons +/dataview +/defer +/dialog +/divider +/dock +/dragdrop +/dropdown +/dynamicdialog +/editor +/fieldset +/fileupload +/filterservice +/floatlabel +/focustrap +/galleria +/guides +/guides/accessibility +/guides/csslayer +/guides/templateupdate +/iconfield +/icons +/image +/inplace +/inputgroup +/inputmask +/inputnumber +/inputotp +/inputswitch +/inputtext +/inputtextarea +/installation +/keyfilter +/knob +/listbox +/lts +/megamenu +/menu +/menubar +/messages +/metergroup +/multiselect +/notfound +/orderlist +/organizationchart +/overlay +/overlaypanel +/paginator +/panel +/panelmenu +/partners +/password +/picklist +/playground +/progressbar +/progressspinner +/radiobutton +/rating +/ripple +/roadmap +/scroller +/scrollpanel +/scrolltop +/selectbutton +/sidebar +/skeleton +/slider +/speeddial +/splitbutton +/splitter +/stepper +/steps +/steps/confirmation +/steps/payment +/steps/personal +/steps/seat +/styleclass +/support +/table +/tabmenu +/tabview +/tag +/team +/templates +/templates/apollo +/templates/atlantis +/templates/avalon +/templates/diamond +/templates/freya +/templates/poseidon +/templates/sakai +/templates/ultima +/templates/verona +/terminal +/theming +/tieredmenu +/timeline +/toast +/togglebutton +/toolbar +/tooltip +/tree +/treeselect +/treetable +/tristatecheckbox +/uikit \ No newline at end of file diff --git a/server.ts b/server.ts index d5e8374acef..4382faf534d 100644 --- a/server.ts +++ b/server.ts @@ -1,27 +1,27 @@ import { APP_BASE_HREF } from '@angular/common'; import { CommonEngine } from '@angular/ssr'; import express from 'express'; -import { join } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { dirname, join, resolve } from 'node:path'; import bootstrap from './src/main.server'; -import { environment } from 'src/environments/environment'; - // The Express app is exported so that it can be used by serverless Functions. export function app(): express.Express { const server = express(); - const distFolder = join(process.cwd(), 'dist/primeng/browser'); - const indexHtml = join(distFolder, 'index.html'); + const serverDistFolder = dirname(fileURLToPath(import.meta.url)); + const browserDistFolder = resolve(serverDistFolder, '../browser'); + const indexHtml = join(serverDistFolder, 'index.server.html'); const commonEngine = new CommonEngine(); server.set('view engine', 'html'); - server.set('views', distFolder); + server.set('views', browserDistFolder); // Example Express Rest API endpoints // server.get('/api/**', (req, res) => { }); // Serve static files from /browser server.get( '*.*', - express.static(distFolder, { + express.static(browserDistFolder, { maxAge: '1y' }) ); @@ -35,7 +35,7 @@ export function app(): express.Express { bootstrap, documentFilePath: indexHtml, url: `${protocol}://${headers.host}${originalUrl}`, - publicPath: distFolder, + publicPath: browserDistFolder, providers: [{ provide: APP_BASE_HREF, useValue: baseUrl }] }) .then((html) => res.send(html)) @@ -44,3 +44,15 @@ export function app(): express.Express { return server; } + +function run(): void { + const port = process.env['PORT'] || 4000; + + // Start up the Node server + const server = app(); + server.listen(port, () => { + console.log(`Node Express server listening on http://localhost:${port}`); + }); +} + +run(); diff --git a/src/app/components/api/filterservice.spec.ts b/src/app/components/api/filterservice.spec.ts index f6f821abc5b..d2d8f5847fc 100644 --- a/src/app/components/api/filterservice.spec.ts +++ b/src/app/components/api/filterservice.spec.ts @@ -1,16 +1,16 @@ import { FilterService } from './filterservice'; describe('FilterService Suite', () => { let data: any = [ - { brand: 'VW', year: 2012, color: { name: 'Orange' }, vin: 'dsad231ff' }, - { brand: 'Audi', year: 2011, color: { name: 'Black' }, vin: 'gwregre345' }, - { brand: 'Renault', year: 2005, color: { name: 'Black' }, vin: 'h354htr' }, - { brand: 'BMW', year: 2003, color: { name: 'Blue' }, vin: 'j6w54qgh' }, - { brand: 'Mercedes', year: 1995, color: { name: 'Red' }, vin: 'hrtwy34' }, - { brand: 'Volvo', year: 2005, color: { name: 'Orange' }, vin: 'jejtyj' }, - { brand: 'Honda', year: 2012, color: { name: 'Blue' }, vin: 'g43gr' }, - { brand: 'Jaguar', year: 2013, color: { name: 'Black' }, vin: 'greg34' }, - { brand: 'Ford', year: 2000, color: { name: 'White' }, vin: 'h54hw5' }, - { brand: 'Fiat', year: 2013, color: { name: 'Yellow' }, vin: '245t2s' } + { brand: 'VW', year: 2012, color: { name: 'Orange' }, vin: 'dsad231ff', price: '1000.0' }, + { brand: 'Audi', year: 2011, color: { name: 'Black' }, vin: 'gwregre345', price: '4000.0' }, + { brand: 'Renault', year: 2005, color: { name: 'Black' }, vin: 'h354htr', price: '5000.0' }, + { brand: 'BMW', year: 2003, color: { name: 'Blue' }, vin: 'j6w54qgh', price: '3000.0000000' }, + { brand: 'Mercedes', year: 1995, color: { name: 'Red' }, vin: 'hrtwy34', price: '2000.0' }, + { brand: 'Volvo', year: 2005, color: { name: 'Orange' }, vin: 'jejtyj', price: '2000.0' }, + { brand: 'Honda', year: 2012, color: { name: 'Blue' }, vin: 'g43gr', price: '4000.0' }, + { brand: 'Jaguar', year: 2013, color: { name: 'Black' }, vin: 'greg34', price: '1000.0' }, + { brand: 'Ford', year: 2000, color: { name: 'White' }, vin: 'h54hw5', price: '2000.0' }, + { brand: 'Fiat', year: 2013, color: { name: 'Yellow' }, vin: '245t2s', price: '5000.0' } ]; let timeData = [{ date: 'Tue Aug 04 2019 00:00:00 GMT+0300 (GMT+03:00)' }, { date: 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)' }, { date: 'Tue Aug 07 2019 00:00:00 GMT+0300 (GMT+03:00)' }]; @@ -48,6 +48,10 @@ describe('FilterService Suite', () => { expect(filteredValue.length).toEqual(10); filteredValue = filterService.filter(data, [''], 'BMW', 'equals'); expect(filteredValue.length).toEqual(0); + filteredValue = filterService.filter(data, ['price'], 3000, 'equals'); + expect(filteredValue.length).toEqual(1); + filteredValue = filterService.filter(data, ['year'], 2012, 'equals'); + expect(filteredValue.length).toEqual(2); }); it('Should filter by notEquals', () => { let filteredValue = filterService.filter(data, ['brand'], 'BMW', 'notEquals'); @@ -56,6 +60,10 @@ describe('FilterService Suite', () => { expect(filteredValue.length).toEqual(0); filteredValue = filterService.filter(data, [''], 'BMW', 'notEquals'); expect(filteredValue.length).toEqual(10); + filteredValue = filterService.filter(data, ['price'], 3000, 'notEquals'); + expect(filteredValue.length).toEqual(9); + filteredValue = filterService.filter(data, ['year'], 2012, 'notEquals'); + expect(filteredValue.length).toEqual(8); }); it('Should filter by lt', () => { let filteredValue = filterService.filter(timeData, ['date'], 'Tue Aug 05 2019 00:00:00 GMT+0300 (GMT+03:00)', 'lt'); diff --git a/src/app/components/api/filterservice.ts b/src/app/components/api/filterservice.ts index 4df914bcedd..7d97e0d3d66 100644 --- a/src/app/components/api/filterservice.ts +++ b/src/app/components/api/filterservice.ts @@ -93,6 +93,7 @@ export class FilterService { } if (value.getTime && filter.getTime) return value.getTime() === filter.getTime(); + else if (value == filter) return true; else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale); }, @@ -106,6 +107,7 @@ export class FilterService { } if (value.getTime && filter.getTime) return value.getTime() !== filter.getTime(); + else if (value == filter) return false; else return ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale); }, @@ -248,6 +250,7 @@ export class FilterService { if (value === undefined || value === null) { return false; } + value.setHours(0, 0, 0, 0); return value.getTime() > filter.getTime(); } diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index 918cb0ed994..fb19fd8c32b 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -558,6 +558,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr * @group Props */ @Input() optionLabel: string | ((item: any) => string) | undefined; + /** + * Property name or getter function to use as the value of an option. + * @group Props + */ + @Input() optionValue: string | ((item: any) => string) | undefined; /** * Unique identifier of the component. * @group Props @@ -768,9 +773,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr inputValue = computed(() => { const modelValue = this.modelValue(); + const selectedOption = this.optionValueSelected ? (this.suggestions || []).find((item: any) => ObjectUtils.resolveFieldData(item, this.optionValue) === modelValue) : modelValue; + if (modelValue) { - if (typeof modelValue === 'object') { - const label = this.getOptionLabel(modelValue); + if (typeof modelValue === 'object' || this.optionValueSelected) { + const label = this.getOptionLabel(selectedOption); return label != null ? label : modelValue; } else { @@ -856,6 +863,10 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr return !this.virtualScroll; } + get optionValueSelected() { + return typeof this.modelValue() === 'string' && this.optionValue; + } + constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public config: PrimeNGConfig, public overlayService: OverlayService, private zone: NgZone) { effect(() => { this.filled = ObjectUtils.isNotEmpty(this.modelValue()); @@ -1564,7 +1575,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr } getOptionValue(option) { - return option; // TODO: The 'optionValue' properties can be added. + return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option && option.value != undefined ? option.value : option; } getOptionIndex(index, scrollerOptions) { diff --git a/src/app/components/badge/badge.ts b/src/app/components/badge/badge.ts index 0833ce52730..16994fb0f71 100755 --- a/src/app/components/badge/badge.ts +++ b/src/app/components/badge/badge.ts @@ -27,7 +27,7 @@ export class BadgeDirective implements OnChanges, AfterViewInit { /** * Size of the badge, valid options are "large" and "xlarge". * @group Props - * @deprecated + * @deprecated use badgeSize instead. */ @Input() public set size(value: 'large' | 'xlarge') { this._size = value; @@ -237,7 +237,7 @@ export class Badge { /** * Size of the badge, valid options are "large" and "xlarge". * @group Props - * @deprecated + * @deprecated use badgeSize instead. */ @Input() public set size(value: 'large' | 'xlarge') { this._size = value; diff --git a/src/app/components/card/card.ts b/src/app/components/card/card.ts index d81c1f6a1a2..c4db6adf4e9 100755 --- a/src/app/components/card/card.ts +++ b/src/app/components/card/card.ts @@ -1,6 +1,7 @@ import { CommonModule } from '@angular/common'; -import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core'; +import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, ElementRef, Input, NgModule, QueryList, SimpleChange, TemplateRef, ViewEncapsulation, signal } from '@angular/core'; import { BlockableUI, Footer, Header, PrimeTemplate, SharedModule } from 'primeng/api'; +import { ObjectUtils } from 'primeng/utils'; /** * Card is a flexible container component. * @group Components @@ -8,7 +9,7 @@ import { BlockableUI, Footer, Header, PrimeTemplate, SharedModule } from 'primen @Component({ selector: 'p-card', template: ` -
{{ txt }}
diff --git a/src/app/showcase/pages/lts/lts.component.html b/src/app/showcase/pages/lts/lts.component.html index 36b6ad88de4..f5469245f38 100755 --- a/src/app/showcase/pages/lts/lts.component.html +++ b/src/app/showcase/pages/lts/lts.component.html @@ -134,7 +134,8 @@