Skip to content

Commit

Permalink
Merge branch 'master' into issue-15472
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 9, 2024
2 parents 11b851e + faca375 commit 8b42eed
Show file tree
Hide file tree
Showing 70 changed files with 3,583 additions and 972 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ Thumbs.db
# type doc
api-generator/typedoc.json
.vercel
.nx
1,890 changes: 1,039 additions & 851 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@
"url": "https://github.com/primefaces/primeng.git"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.3.1",
"@angular-eslint/eslint-plugin": "17.3.0",
"@angular-eslint/eslint-plugin-template": "17.3.0",
"@angular-eslint/schematics": "17.3.0",
"@angular-eslint/template-parser": "17.3.0",
"@angular/animations": "^17.3.1",
"@angular/cdk": "^17.3.1",
"@angular/cli": "^17.3.1",
"@angular/common": "^17.3.1",
"@angular/compiler": "^17.3.1",
"@angular/compiler-cli": "^17.3.1",
"@angular/core": "^17.3.1",
"@angular/forms": "^17.3.1",
"@angular/platform-browser": "^17.3.1",
"@angular/platform-browser-dynamic": "^17.3.1",
"@angular/platform-server": "^17.3.1",
"@angular/router": "^17.3.1",
"@angular-devkit/build-angular": "^17.3.6",
"@angular-eslint/eslint-plugin": "17.4.0",
"@angular-eslint/eslint-plugin-template": "17.4.0",
"@angular-eslint/schematics": "17.4.0",
"@angular-eslint/template-parser": "17.4.0",
"@angular/animations": "^17.3.7",
"@angular/cdk": "^17.3.7",
"@angular/cli": "^17.3.6",
"@angular/common": "^17.3.7",
"@angular/compiler": "^17.3.7",
"@angular/compiler-cli": "^17.3.7",
"@angular/core": "^17.3.7",
"@angular/forms": "^17.3.7",
"@angular/platform-browser": "^17.3.7",
"@angular/platform-browser-dynamic": "^17.3.7",
"@angular/platform-server": "^17.3.7",
"@angular/router": "^17.3.7",
"@stackblitz/sdk": "1.9.0",
"@types/express": "^4.17.17",
"@types/jasmine": "~4.3.1",
Expand Down Expand Up @@ -72,7 +72,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ng-packagr": "^17.2.0",
"ng-packagr": "^17.3.0",
"prettier": "2.8.8",
"primeflex": "^3.3.1",
"primeicons": "^7.0.0",
Expand All @@ -85,7 +85,7 @@
"typescript": "5.2.2",
"xlsx": "^0.18.5",
"zone.js": "~0.14.0",
"@angular/ssr": "^17.3.1",
"@angular/ssr": "^17.3.6",
"@docsearch/js": "^3.3.4",
"esbuild": "^0.19.8"
}
Expand Down
53 changes: 53 additions & 0 deletions src/app/components/api/primeicons.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export class PrimeIcons {
public static readonly ADDRESS_BOOK = 'pi pi-address-book';
public static readonly ALIGN_CENTER = 'pi pi-align-center';
public static readonly ALIGN_JUSTIFY = 'pi pi-align-justify';
public static readonly ALIGN_LEFT = 'pi pi-align-left';
Expand All @@ -21,20 +22,25 @@ export class PrimeIcons {
public static readonly ARROW_CIRCLE_UP = 'pi pi-arrow-circle-up';
public static readonly ARROW_DOWN = 'pi pi-arrow-down';
public static readonly ARROW_DOWN_LEFT = 'pi pi-arrow-down-left';
public static readonly ARROW_DOWN_LEFT_AND_ARROW_UP_RIGHT_TO_CENTER = 'pi pi-arrow-down-left-and-arrow-up-right-to-center';
public static readonly ARROW_DOWN_RIGHT = 'pi pi-arrow-down-right';
public static readonly ARROW_LEFT = 'pi pi-arrow-left';
public static readonly ARROW_RIGHT_ARROW_LEFT = 'pi pi-arrow-right-arrow-left';
public static readonly ARROW_RIGHT = 'pi pi-arrow-right';
public static readonly ARROW_UP = 'pi pi-arrow-up';
public static readonly ARROW_UP_LEFT = 'pi pi-arrow-up-left';
public static readonly ARROW_UP_RIGHT = 'pi pi-arrow-up-right';
public static readonly ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER = 'pi pi-arrow-up-right-and-arrow-down-left-from-center';
public static readonly ARROW_H = 'pi pi-arrows-h';
public static readonly ARROW_V = 'pi pi-arrows-v';
public static readonly ASTERIKS = 'pi pi-asteriks';
public static readonly AT = 'pi pi-at';
public static readonly BACKWARD = 'pi pi-backward';
public static readonly BAN = 'pi pi-ban';
public static readonly BARCODE = 'pi pi-barcode';
public static readonly BARS = 'pi pi-bars';
public static readonly BELL = 'pi pi-bell';
public static readonly BELL_SLASH = 'pi pi-bell-slash';
public static readonly BITCOIN = 'pi pi-bitcoin';
public static readonly BOLT = 'pi pi-bolt';
public static readonly BOOK = 'pi pi-book';
Expand All @@ -43,8 +49,11 @@ export class PrimeIcons {
public static readonly BOX = 'pi pi-box';
public static readonly BRIEFCASE = 'pi pi-briefcase';
public static readonly BUILDING = 'pi pi-building';
public static readonly BUILDING_COLUMNS = 'pi pi-building-columns';
public static readonly BULLSEYE = 'pi pi-bullseye';
public static readonly CALCULATOR = 'pi pi-calculator';
public static readonly CALENDAR = 'pi pi-calendar';
public static readonly CALENDAR_CLOCK = 'pi pi-calendar-clock';
public static readonly CALENDAR_MINUS = 'pi pi-calendar-minus';
public static readonly CALENDAR_PLUS = 'pi pi-calendar-plus';
public static readonly CALENDAR_TIMES = 'pi pi-calendar-times';
Expand All @@ -54,10 +63,13 @@ export class PrimeIcons {
public static readonly CARET_LEFT = 'pi pi-caret-left';
public static readonly CARET_RIGHT = 'pi pi-caret-right';
public static readonly CARET_UP = 'pi pi-caret-up';
public static readonly CART_ARROW_DOWN = 'pi pi-cart-arrow-down';
public static readonly CART_MINUS = 'pi pi-cart-minus';
public static readonly CART_PLUS = 'pi pi-cart-plus';
public static readonly CHART_BAR = 'pi pi-chart-bar';
public static readonly CHART_LINE = 'pi pi-chart-line';
public static readonly CHART_PIE = 'pi pi-chart-pie';
public static readonly CHART_SCATTER = 'pi pi-chart-scatter';
public static readonly CHECK = 'pi pi-check';
public static readonly CHECK_CIRCLE = 'pi pi-check-circle';
public static readonly CHECK_SQUARE = 'pi pi-check-square';
Expand All @@ -71,6 +83,7 @@ export class PrimeIcons {
public static readonly CHEVRON_UP = 'pi pi-chevron-up';
public static readonly CIRCLE = 'pi pi-circle';
public static readonly CIRCLE_FILL = 'pi pi-circle-fill';
public static readonly CLIPBOARD = 'pi pi-clipboard';
public static readonly CLOCK = 'pi pi-clock';
public static readonly CLONE = 'pi pi-clone';
public static readonly CLOUD = 'pi pi-cloud';
Expand All @@ -83,6 +96,7 @@ export class PrimeIcons {
public static readonly COMPASS = 'pi pi-compass';
public static readonly COPY = 'pi pi-copy';
public static readonly CREDIT_CARD = 'pi pi-credit-card';
public static readonly CROWN = 'pi pi-crown';
public static readonly DATABASE = 'pi pi-database';
public static readonly DESKTOP = 'pi pi-desktop';
public static readonly DELETE_LEFT = 'pi pi-delete-left';
Expand All @@ -95,20 +109,27 @@ export class PrimeIcons {
public static readonly ELLIPSIS_H = 'pi pi-ellipsis-h';
public static readonly ELLIPSIS_V = 'pi pi-ellipsis-v';
public static readonly ENVELOPE = 'pi pi-envelope';
public static readonly EQUALS = 'pi pi-equals';
public static readonly ERASER = 'pi pi-eraser';
public static readonly ETHEREUM = 'pi pi-ethereum';
public static readonly EURO = 'pi pi-euro';
public static readonly EXCLAMATION_CIRCLE = 'pi pi-exclamation-circle';
public static readonly EXCLAMATION_TRIANGLE = 'pi pi-exclamation-triangle';
public static readonly EXPAND = 'pi pi-expand';
public static readonly EXTERNAL_LINK = 'pi pi-external-link';
public static readonly EYE = 'pi pi-eye';
public static readonly EYE_SLASH = 'pi pi-eye-slash';
public static readonly FACE_SMILE = 'pi pi-face-smile';
public static readonly FACEBOOK = 'pi pi-facebook';
public static readonly FAST_BACKWARD = 'pi pi-fast-backward';
public static readonly FAST_FORWARD = 'pi pi-fast-forward';
public static readonly FILE = 'pi pi-file';
public static readonly FILE_ARROW_UP = 'pi pi-file-arrow-up';
public static readonly FILE_CHECK = 'pi pi-file-check';
public static readonly FILE_EDIT = 'pi pi-file-edit';
public static readonly FILE_IMPORT = 'pi pi-file-import';
public static readonly FILE_PDF = 'pi pi-file-pdf';
public static readonly FILE_PLUS = 'pi pi-file-plus';
public static readonly FILE_EXCEL = 'pi pi-file-excel';
public static readonly FILE_EXPORT = 'pi pi-file-export';
public static readonly FILE_WORD = 'pi pi-file-word';
Expand All @@ -119,12 +140,17 @@ export class PrimeIcons {
public static readonly FLAG_FILL = 'pi pi-flag-fill';
public static readonly FOLDER = 'pi pi-folder';
public static readonly FOLDER_OPEN = 'pi pi-folder-open';
public static readonly FOLDER_PLUS = 'pi pi-folder-plus';
public static readonly FORWARD = 'pi pi-forward';
public static readonly GAUGE = 'pi pi-gauge';
public static readonly GIFT = 'pi pi-gift';
public static readonly GITHUB = 'pi pi-github';
public static readonly GLOBE = 'pi pi-globe';
public static readonly GOOGLE = 'pi pi-google';
public static readonly GRADUATION_CAP = 'pi pi-graduation-cap';
public static readonly HAMMER = 'pi pi-hammer';
public static readonly HASHTAG = 'pi pi-hashtag';
public static readonly HEADPHONES = 'pi pi-headphones';
public static readonly HEART = 'pi pi-heart';
public static readonly HEART_FILL = 'pi pi-heart-fill';
public static readonly HISTORY = 'pi pi-history';
Expand All @@ -134,34 +160,45 @@ export class PrimeIcons {
public static readonly IMAGE = 'pi pi-image';
public static readonly IMAGES = 'pi pi-images';
public static readonly INBOX = 'pi pi-inbox';
public static readonly INDIAN_RUPEE = 'pi pi-indian-rupee';
public static readonly INFO = 'pi pi-info';
public static readonly INFO_CIRCLE = 'pi pi-info-circle';
public static readonly INSTAGRAM = 'pi pi-instagram';
public static readonly KEY = 'pi pi-key';
public static readonly LANGUAGE = 'pi pi-language';
public static readonly LIGHTBULB = 'pi pi-lightbulb';
public static readonly LINK = 'pi pi-link';
public static readonly LINKEDIN = 'pi pi-linkedin';
public static readonly LIST = 'pi pi-list';
public static readonly LIST_CHECK = 'pi pi-list-check';
public static readonly LOCK = 'pi pi-lock';
public static readonly LOCK_OPEN = 'pi pi-lock-open';
public static readonly MAP = 'pi pi-map';
public static readonly MAP_MARKER = 'pi pi-map-marker';
public static readonly MARS = 'pi pi-mars';
public static readonly MEGAPHONE = 'pi pi-megaphone';
public static readonly MICROCHIP = 'pi pi-microchip';
public static readonly MICROCHIP_AI = 'pi pi-microchip-ai';
public static readonly MICROPHONE = 'pi pi-microphone';
public static readonly MICROSOFT = 'pi pi-microsoft';
public static readonly MINUS = 'pi pi-minus';
public static readonly MINUS_CIRCLE = 'pi pi-minus-circle';
public static readonly MOBILE = 'pi pi-mobile';
public static readonly MONEY_BILL = 'pi pi-money-bill';
public static readonly MOON = 'pi pi-moon';
public static readonly OBJECTS_COLUMN = 'pi pi-objects-column';
public static readonly PALETTE = 'pi pi-palette';
public static readonly PAPERCLIP = 'pi pi-paperclip';
public static readonly PAUSE = 'pi pi-pause';
public static readonly PAUSE_CIRCLE = 'pi pi-pause-circle';
public static readonly PAYPAL = 'pi pi-paypal';
public static readonly PEN_TO_SQUARE = 'pi pi-pen-to-square';
public static readonly PENCIL = 'pi pi-pencil';
public static readonly PERCENTAGE = 'pi pi-percentage';
public static readonly PHONE = 'pi pi-phone';
public static readonly PINTEREST = 'pi pi-pinterest';
public static readonly PLAY = 'pi pi-play';
public static readonly PLAY_CIRCLE = 'pi pi-play-circle';
public static readonly PLUS = 'pi pi-plus';
public static readonly PLUS_CIRCLE = 'pi pi-plus-circle';
public static readonly POUND = 'pi pi-pound';
Expand All @@ -171,6 +208,7 @@ export class PrimeIcons {
public static readonly QRCODE = 'pi pi-qrcode';
public static readonly QUESTION = 'pi pi-question';
public static readonly QUESTION_CIRCLE = 'pi pi-question-circle';
public static readonly RECEIPT = 'pi pi-receipt';
public static readonly REDDIT = 'pi pi-reddit';
public static readonly REFRESH = 'pi pi-refresh';
public static readonly REPLAY = 'pi pi-replay';
Expand All @@ -183,6 +221,7 @@ export class PrimeIcons {
public static readonly SERVER = 'pi pi-server';
public static readonly SHARE_ALT = 'pi pi-share-alt';
public static readonly SHIELD = 'pi pi-shield';
public static readonly SHOP = 'pi pi-shop';
public static readonly SHOPPING_BAG = 'pi pi-shopping-bag';
public static readonly SHOPPING_CART = 'pi pi-shopping-cart';
public static readonly SIGN_IN = 'pi pi-sign-in';
Expand All @@ -203,14 +242,20 @@ export class PrimeIcons {
public static readonly SORT_AMOUNT_UP = 'pi pi-sort-amount-up';
public static readonly SORT_AMOUNT_UP_ALT = 'pi pi-sort-amount-up-alt';
public static readonly SORT_DOWN = 'pi pi-sort-down';
public static readonly SORT_DOWN_FILL = 'pi pi-sort-down-fill';
public static readonly SORT_NUMERIC_DOWN = 'pi pi-sort-numeric-down';
public static readonly SORT_NUMERIC_DOWN_ALT = 'pi pi-sort-numeric-down-alt';
public static readonly SORT_NUMERIC_UP = 'pi pi-sort-numeric-up';
public static readonly SORT_NUMERIC_UP_ALT = 'pi pi-sort-numeric-up-alt';
public static readonly SORT_UP = 'pi pi-sort-up';
public static readonly SORT_UP_FILL = 'pi pi-sort-up-fill';
public static readonly SPARKLES = 'pi pi-sparkles';
public static readonly SPINNER = 'pi pi-spinner';
public static readonly SPINNER_DOTTED = 'pi pi-spinner-dotted';
public static readonly STAR = 'pi pi-star';
public static readonly STAR_FILL = 'pi pi-star-fill';
public static readonly STAR_HALF = 'pi pi-star-half';
public static readonly STAR_HALF_FILL = 'pi pi-star-half-fill';
public static readonly STEP_BACKWARD = 'pi pi-step-backward';
public static readonly STEP_BACKWARD_ALT = 'pi pi-step-backward-alt';
public static readonly STEP_FORWARD = 'pi pi-step-forward';
Expand All @@ -230,11 +275,16 @@ export class PrimeIcons {
public static readonly THUMBS_DOWN_FILL = 'pi pi-thumbs-down-fill';
public static readonly THUMBS_UP = 'pi pi-thumbs-up';
public static readonly THUMBS_UP_FILL = 'pi pi-thumbs-up-fill';
public static readonly THUMBTACK = 'pi pi-thumbtack';
public static readonly TICKET = 'pi pi-ticket';
public static readonly TIKTOK = 'pi pi-tiktok';
public static readonly TIMES = 'pi pi-times';
public static readonly TIMES_CIRCLE = 'pi pi-times-circle';
public static readonly TRASH = 'pi pi-trash';
public static readonly TROPHY = 'pi pi-trophy';
public static readonly TRUCK = 'pi pi-truck';
public static readonly TURKISH_LIRA = 'pi pi-turkish-lira';
public static readonly TWITCH = 'pi pi-twitch';
public static readonly TWITTER = 'pi pi-twitter';
public static readonly UNDO = 'pi pi-undo';
public static readonly UNLOCK = 'pi pi-unlock';
Expand All @@ -244,13 +294,16 @@ export class PrimeIcons {
public static readonly USER_MINUS = 'pi pi-user-minus';
public static readonly USER_PLUS = 'pi pi-user-plus';
public static readonly USERS = 'pi pi-users';
public static readonly VENUS = 'pi pi-venus';
public static readonly VERIFIED = 'pi pi-verified';
public static readonly VIDEO = 'pi pi-video';
public static readonly VIMEO = 'pi pi-vimeo';
public static readonly VOLUME_DOWN = 'pi pi-volume-down';
public static readonly VOLUME_OFF = 'pi pi-volume-off';
public static readonly VOLUME_UP = 'pi pi-volume-up';
public static readonly WALLET = 'pi pi-wallet';
public static readonly WAREHOUSE = 'pi pi-warehouse';
public static readonly WAVE_PULSE = 'pi pi-wave-pulse';
public static readonly WHATSAPP = 'pi pi-whatsapp';
public static readonly WIFI = 'pi pi-wifi';
public static readonly WINDOW_MAXIMIZE = 'pi pi-window-maximize';
Expand Down
7 changes: 2 additions & 5 deletions src/app/components/badge/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class Badge {
* Severity type of the badge.
* @group Props
*/
@Input() severity: 'success' | 'info' | 'warning' | 'danger' | null | undefined;
@Input() severity: 'success' | 'info' | 'warning' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
/**
* Value to display inside the badge.
* @group Props
Expand Down Expand Up @@ -254,10 +254,7 @@ export class Badge {
'p-badge-no-gutter': this.value != undefined && String(this.value).length === 1,
'p-badge-lg': this.badgeSize === 'large' || this.size === 'large',
'p-badge-xl': this.badgeSize === 'xlarge' || this.size === 'xlarge',
'p-badge-info': this.severity === 'info',
'p-badge-success': this.severity === 'success',
'p-badge-warning': this.severity === 'warning',
'p-badge-danger': this.severity === 'danger'
[`p-badge-${this.severity}`]: this.severity
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export class Button implements AfterContentInit {
* Defines the style of the button.
* @group Props
*/
@Input() severity: 'secondary' | 'success' | 'info' | 'warning' | 'help' | 'danger' | 'contrast' | string | undefined;
@Input() severity: 'success' | 'info' | 'warning' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast' | null | undefined;
/**
* Add a border class without a background initially.
* @group Props
Expand Down
3 changes: 3 additions & 0 deletions src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,9 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor {
}

isValidDateForTimeConstraints(selectedDate: Date) {
if (this.keepInvalid) {
return true; // If we are keeping invalid dates, we don't need to check for time constraints
}
return (!this.minDate || selectedDate >= this.minDate) && (!this.maxDate || selectedDate <= this.maxDate);
}

Expand Down
12 changes: 4 additions & 8 deletions src/app/components/colorpicker/colorpicker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,15 @@ describe('ColorPicker', () => {
fixture.detectChanges();

const hideSpy = spyOn(colorpicker, 'hide').and.callThrough();
const keydownSpy = spyOn(colorpicker, 'onInputKeydown').and.callThrough();
const inputEl = fixture.debugElement.query(By.css('.p-inputtext'));
const openEvent: any = document.createEvent('CustomEvent');
openEvent.which = 32;
openEvent.initEvent('keydown', true, true);
inputEl.nativeElement.dispatchEvent(openEvent);
inputEl.nativeElement.dispatchEvent(new KeyboardEvent('keydown', { code: 'Space', keyCode: 32 }));
fixture.detectChanges();

expect(keydownSpy).toHaveBeenCalled();
let selectorEl = fixture.debugElement.query(By.css('.p-colorpicker-panel'));
expect(selectorEl).toBeTruthy();
const escapeEvent: any = document.createEvent('CustomEvent');
escapeEvent.which = 27;
escapeEvent.initEvent('keydown', true, true);
inputEl.nativeElement.dispatchEvent(escapeEvent);
inputEl.nativeElement.dispatchEvent(new KeyboardEvent('keydown', { code: 'Escape', keyCode: 27 }));
fixture.detectChanges();

selectorEl = fixture.debugElement.query(By.css('.p-colorpicker-panel'));
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/dataview/dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class DataView implements OnInit, AfterContentInit, OnDestroy, BlockableU
* Array of integer/object values to display inside rows per page dropdown of paginator
* @group Props
*/
@Input({ transform: numberAttribute }) rowsPerPageOptions: number[] | any[] | undefined;
@Input() rowsPerPageOptions: number[] | any[] | undefined;
/**
* Position of the paginator.
* @group Props
Expand Down
8 changes: 6 additions & 2 deletions src/app/components/dropdown/dropdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
.p-dropdown .p-dropdown-panel {
min-width: 100%;
}

.p-dropdown-items-wrapper {
overflow: auto;
}
Expand Down Expand Up @@ -85,4 +85,8 @@
.p-fluid .p-dropdown .p-dropdown-label {
width: 1%;
}
}

.p-float-label .p-dropdown .p-placeholder {
opacity: 0;
}
}
Loading

0 comments on commit 8b42eed

Please sign in to comment.