@primeng/mcp 21.1.1 → 21.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +725 -499
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { runPrimeMcpServer } from "@primeuix/mcp";
6
6
  // data/components.json
7
7
  var components_default = {
8
8
  version: "1.0.0",
9
- generatedAt: "2026-01-28",
9
+ generatedAt: "2026-03-04",
10
10
  components: [
11
11
  {
12
12
  name: "accordion",
@@ -543,6 +543,11 @@ export class AccordionTemplateDemo {}`
543
543
  variable: "--p-accordion-header-font-weight",
544
544
  description: "Font weight of header"
545
545
  },
546
+ {
547
+ token: "accordion.header.font.size",
548
+ variable: "--p-accordion-header-font-size",
549
+ description: "Font size of header"
550
+ },
546
551
  {
547
552
  token: "accordion.header.border.radius",
548
553
  variable: "--p-accordion-header-border-radius",
@@ -908,9 +913,7 @@ export class AnimateonscrollBasicDemo {}`
908
913
  id: "accessibility",
909
914
  label: "Accessibility",
910
915
  description: "Screen Reader Value to describe the component can either be provided via label tag combined with inputId prop or using ariaLabelledBy , ariaLabel props. The input element has combobox role in addition to aria-autocomplete , aria-haspopup and aria-expanded attributes. The relation between the input and the popup is created with aria-controls and aria-activedescendant attribute is used to instruct screen reader which option to read during keyboard navigation within the popup list. In multiple mode, chip list uses listbox role whereas each chip has the option role with aria-label set to the label of the chip. The popup list has an id that refers to the aria-controls attribute of the input element and uses listbox as the role. Each list item has option role and an id to match the aria-activedescendant of the input element.",
911
- examples: {
912
- typescript: '<label for="ac1">Username</label>\n<p-autocomplete inputId="ac1"/>\n\n<span id="ac2">Email</span>\n<p-autocomplete ariaLabelledBy="ac2" />\n\n<p-autocomplete ariaLabel="City" />'
913
- }
916
+ examples: null
914
917
  },
915
918
  {
916
919
  id: "advanced-chips",
@@ -2969,6 +2972,16 @@ export class AutocompleteVirtualScrollDemo implements OnInit {
2969
2972
  variable: "--p-autocomplete-option-border-radius",
2970
2973
  description: "Border radius of option"
2971
2974
  },
2975
+ {
2976
+ token: "autocomplete.option.font.weight",
2977
+ variable: "--p-autocomplete-option-font-weight",
2978
+ description: "Font weight of option"
2979
+ },
2980
+ {
2981
+ token: "autocomplete.option.font.size",
2982
+ variable: "--p-autocomplete-option-font-size",
2983
+ description: "Font size of option"
2984
+ },
2972
2985
  {
2973
2986
  token: "autocomplete.option.group.background",
2974
2987
  variable: "--p-autocomplete-option-group-background",
@@ -2984,6 +2997,11 @@ export class AutocompleteVirtualScrollDemo implements OnInit {
2984
2997
  variable: "--p-autocomplete-option-group-font-weight",
2985
2998
  description: "Font weight of option group"
2986
2999
  },
3000
+ {
3001
+ token: "autocomplete.option.group.font.size",
3002
+ variable: "--p-autocomplete-option-group-font-size",
3003
+ description: "Font size of option group"
3004
+ },
2987
3005
  {
2988
3006
  token: "autocomplete.option.group.padding",
2989
3007
  variable: "--p-autocomplete-option-group-padding",
@@ -3620,6 +3638,11 @@ export class AvatarTemplateDemo {}`
3620
3638
  variable: "--p-avatar-height",
3621
3639
  description: "Height of root"
3622
3640
  },
3641
+ {
3642
+ token: "avatar.font.weight",
3643
+ variable: "--p-avatar-font-weight",
3644
+ description: "Font weight of root"
3645
+ },
3623
3646
  {
3624
3647
  token: "avatar.font.size",
3625
3648
  variable: "--p-avatar-font-size",
@@ -4609,6 +4632,21 @@ export class BreadcrumbTemplateDemo implements OnInit {
4609
4632
  variable: "--p-breadcrumb-item-icon-hover-color",
4610
4633
  description: "Icon hover color of item"
4611
4634
  },
4635
+ {
4636
+ token: "breadcrumb.item.icon.size",
4637
+ variable: "--p-breadcrumb-item-icon-size",
4638
+ description: "Icon size of item icon"
4639
+ },
4640
+ {
4641
+ token: "breadcrumb.item.label.font.weight",
4642
+ variable: "--p-breadcrumb-item-label-font-weight",
4643
+ description: "Font weight of item label"
4644
+ },
4645
+ {
4646
+ token: "breadcrumb.item.label.font.size",
4647
+ variable: "--p-breadcrumb-item-label-font-size",
4648
+ description: "Font size of item label"
4649
+ },
4612
4650
  {
4613
4651
  token: "breadcrumb.item.focus.ring.width",
4614
4652
  variable: "--p-breadcrumb-item-focus-ring-width",
@@ -4651,9 +4689,7 @@ export class BreadcrumbTemplateDemo implements OnInit {
4651
4689
  id: "accessibility",
4652
4690
  label: "Accessibility",
4653
4691
  description: "Screen Reader Button component renders a native button element that implicitly includes any passed prop. Text to describe the button is defined with the aria-label prop, if not present label prop is used as the value. If the button is icon only or custom templating is used, it is recommended to use aria-label so that screen readers would be able to read the element properly.",
4654
- examples: {
4655
- typescript: '<p-button icon="pi pi-check" aria-label="Submit" />\n<p-button icon="pi pi-check" label="Submit" />\n\n<p-button class="youtube p-0" aria-label="Youtube">\n <i class="pi pi-youtube px-2"></i>\n <span class="px-4">Youtube</span>\n</p-button>'
4656
- }
4692
+ examples: null
4657
4693
  },
4658
4694
  {
4659
4695
  id: "badge",
@@ -5510,6 +5546,11 @@ export class ButtonTextDemo {}`
5510
5546
  variable: "--p-button-icon-only-width",
5511
5547
  description: "Icon only width of root"
5512
5548
  },
5549
+ {
5550
+ token: "button.icon.only.width",
5551
+ variable: "--p-button-icon-only-width",
5552
+ description: "Font size of root"
5553
+ },
5513
5554
  {
5514
5555
  token: "button.sm.font.size",
5515
5556
  variable: "--p-button-sm-font-size",
@@ -6641,6 +6682,16 @@ export class CardBasicDemo {}`
6641
6682
  token: "card.subtitle.color",
6642
6683
  variable: "--p-card-subtitle-color",
6643
6684
  description: "Color of subtitle"
6685
+ },
6686
+ {
6687
+ token: "card.subtitle.font.size",
6688
+ variable: "--p-card-subtitle-font-size",
6689
+ description: "Font size of subtitle"
6690
+ },
6691
+ {
6692
+ token: "card.subtitle.font.weight",
6693
+ variable: "--p-card-subtitle-font-weight",
6694
+ description: "Font weight of subtitle"
6644
6695
  }
6645
6696
  ]
6646
6697
  }
@@ -7404,9 +7455,7 @@ export class CarouselVerticalDemo implements OnInit {
7404
7455
  id: "accessibility",
7405
7456
  label: "Accessibility",
7406
7457
  description: "Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The cascadeselect element has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls that refers to the id of the popup. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses tree as the role. Each list item has a treeitem role along with aria-label , aria-selected and aria-expanded attributes. The container element of a treenode has the group role. The aria-setsize , aria-posinset and aria-level attributes are calculated implicitly and added to each treeitem.",
7407
- examples: {
7408
- typescript: '<span id="dd1">Options</span>\n<p-cascadeselect ariaLabelledBy="dd1"/>\n\n<p-cascadeselect ariaLabel="Options"/>'
7409
- }
7458
+ examples: null
7410
7459
  },
7411
7460
  {
7412
7461
  id: "basic",
@@ -9437,6 +9486,16 @@ export class CascadeselectTemplatedrivenformsDemo {
9437
9486
  variable: "--p-cascadeselect-lg-padding-y",
9438
9487
  description: "Lg padding y of root"
9439
9488
  },
9489
+ {
9490
+ token: "cascadeselect.font.weight",
9491
+ variable: "--p-cascadeselect-font-weight",
9492
+ description: "Font weight of current value"
9493
+ },
9494
+ {
9495
+ token: "cascadeselect.font.size",
9496
+ variable: "--p-cascadeselect-font-size",
9497
+ description: "Font size of current value"
9498
+ },
9440
9499
  {
9441
9500
  token: "cascadeselect.dropdown.width",
9442
9501
  variable: "--p-cascadeselect-dropdown-width",
@@ -9522,6 +9581,11 @@ export class CascadeselectTemplatedrivenformsDemo {
9522
9581
  variable: "--p-cascadeselect-option-selected-focus-color",
9523
9582
  description: "Selected focus color of option"
9524
9583
  },
9584
+ {
9585
+ token: "cascadeselect.option.selected.font.weight",
9586
+ variable: "--p-cascadeselect-option-selected-font-weight",
9587
+ description: "Font weight of a selected option"
9588
+ },
9525
9589
  {
9526
9590
  token: "cascadeselect.option.padding",
9527
9591
  variable: "--p-cascadeselect-option-padding",
@@ -9547,6 +9611,16 @@ export class CascadeselectTemplatedrivenformsDemo {
9547
9611
  variable: "--p-cascadeselect-option-icon-size",
9548
9612
  description: "Icon size of option"
9549
9613
  },
9614
+ {
9615
+ token: "cascadeselect.option.font.weight",
9616
+ variable: "--p-cascadeselect-option-font-weight",
9617
+ description: "Font weight of option"
9618
+ },
9619
+ {
9620
+ token: "cascadeselect.option.font.size",
9621
+ variable: "--p-cascadeselect-option-font-size",
9622
+ description: "Font size of option"
9623
+ },
9550
9624
  {
9551
9625
  token: "cascadeselect.clear.icon.color",
9552
9626
  variable: "--p-cascadeselect-clear-icon-color",
@@ -11972,6 +12046,16 @@ export class ChipTemplateDemo {}`
11972
12046
  variable: "--p-chip-icon-color",
11973
12047
  description: "Color of icon"
11974
12048
  },
12049
+ {
12050
+ token: "chip.label.font.weight",
12051
+ variable: "--p-chip-label-font-weight",
12052
+ description: "Font weight of label"
12053
+ },
12054
+ {
12055
+ token: "chip.label.font.size",
12056
+ variable: "--p-chip-label-font-size",
12057
+ description: "Font size of label"
12058
+ },
11975
12059
  {
11976
12060
  token: "chip.remove.icon.size",
11977
12061
  variable: "--p-chip-remove-icon-size",
@@ -13203,6 +13287,21 @@ export class ConfirmdialogTemplateDemo {
13203
13287
  token: "confirmdialog.content.gap",
13204
13288
  variable: "--p-confirmdialog-content-gap",
13205
13289
  description: "Gap of content"
13290
+ },
13291
+ {
13292
+ token: "confirmdialog.message.color",
13293
+ variable: "--p-confirmdialog-message-color",
13294
+ description: "Color of message"
13295
+ },
13296
+ {
13297
+ token: "confirmdialog.message.font.weight",
13298
+ variable: "--p-confirmdialog-message-font-weight",
13299
+ description: "Font weight of message"
13300
+ },
13301
+ {
13302
+ token: "confirmdialog.message.font.size",
13303
+ variable: "--p-confirmdialog-message-font-size",
13304
+ description: "Font size of message"
13206
13305
  }
13207
13306
  ]
13208
13307
  }
@@ -13636,6 +13735,21 @@ export class ConfirmpopupTemplateDemo {
13636
13735
  variable: "--p-confirmpopup-icon-color",
13637
13736
  description: "Color of icon"
13638
13737
  },
13738
+ {
13739
+ token: "confirmpopup.message.color",
13740
+ variable: "--p-confirmpopup-message-color",
13741
+ description: "Color of message"
13742
+ },
13743
+ {
13744
+ token: "confirmpopup.message.font.weight",
13745
+ variable: "--p-confirmpopup-message-font-weight",
13746
+ description: "Font weight of message"
13747
+ },
13748
+ {
13749
+ token: "confirmpopup.message.font.size",
13750
+ variable: "--p-confirmpopup-message-font-size",
13751
+ description: "Font size of message"
13752
+ },
13639
13753
  {
13640
13754
  token: "confirmpopup.footer.gap",
13641
13755
  variable: "--p-confirmpopup-footer-gap",
@@ -14408,6 +14522,21 @@ export class ContextmenuTemplateDemo implements OnInit {
14408
14522
  variable: "--p-contextmenu-item-icon-active-color",
14409
14523
  description: "Icon active color of item"
14410
14524
  },
14525
+ {
14526
+ token: "contextmenu.item.icon.size",
14527
+ variable: "--p-contextmenu-item-icon-size",
14528
+ description: "Icon size of item"
14529
+ },
14530
+ {
14531
+ token: "contextmenu.item.label.font.weight",
14532
+ variable: "--p-contextmenu-item-label-font-weight",
14533
+ description: "Font weight of item label"
14534
+ },
14535
+ {
14536
+ token: "contextmenu.item.label.font.size",
14537
+ variable: "--p-contextmenu-item-label-font-size",
14538
+ description: "Font size of item label"
14539
+ },
14411
14540
  {
14412
14541
  token: "contextmenu.submenu.mobile.indent",
14413
14542
  variable: "--p-contextmenu-submenu-mobile-indent",
@@ -15492,9 +15621,7 @@ export class DataviewSortingDemo implements OnInit {
15492
15621
  id: "accessibility",
15493
15622
  label: "Accessibility",
15494
15623
  description: 'Screen Reader Value to describe the component can either be provided via label tag combined with inputId prop or using aria-labelledby , aria-label props. The input element has combobox role in addition to aria-autocomplete as "none", aria-haspopup as "dialog" and aria-expanded attributes. The relation between the input and the popup is created with aria-controls attribute that refers to the id of the popup. The optional DatePicker button requires includes aria-haspopup , aria-expanded for states along with aria-controls to define the relation between the popup and the button. The value to read is retrieved from the chooseDate key of the aria property from the locale API. This label is also used for the aria-label of the popup as well. When there is a value selected, it is formatted and appended to the label to be able to notify users about the current value. Popup has a dialog role along with aria-modal and aria-label . The navigation buttons at the header has an aria-label retrieved from the prevYear , nextYear , prevMonth , nextMonth , prevDecade and nextDecade keys of the locale aria API. Similarly month picker button uses the chooseMonth and year picker button uses the chooseYear keys. Main date table uses grid role that contains th elements with col as the scope along with abbr tag resolving to the full name of the month. Each date cell has an aria-label referring to the full date value. Buttons at the footer utilize their readable labels as aria-label as well. Selected date also receives the aria-selected attribute. Timepicker spinner buttons get their labels for aria-label from the aria locale API using the prevHour , nextHour , prevMinute , nextMinute , prevSecond , nextSecond , am and pm keys. DatePicker also includes a hidden section that is only available to screen readers with aria-live as "polite". This element is updated when the selected date changes to instruct the user about the current date selected.',
15495
- examples: {
15496
- typescript: '<label for="date1">Date</label>\n<p-datepicker inputId="date1"/>\n\n<span id="date2">Date</span>\n<p-datepicker ariaLabelledBy="date2"/>\n\n<p-datepicker ariaLabel="Date"/>'
15497
- }
15624
+ examples: null
15498
15625
  },
15499
15626
  {
15500
15627
  id: "basic",
@@ -15867,6 +15994,30 @@ export class DatepickerInvalidDemo {
15867
15994
  description: "Locale for different languages and formats is defined globally, refer to the PrimeNG Locale configuration for more information.",
15868
15995
  examples: null
15869
15996
  },
15997
+ {
15998
+ id: "mask",
15999
+ label: "Mask",
16000
+ description: "DatePicker can be used with the pInputMask directive to enforce a specific input format.",
16001
+ examples: {
16002
+ typescript: `import { Component } from '@angular/core';
16003
+ import { FormsModule } from '@angular/forms';
16004
+ import { DatePickerModule } from 'primeng/datepicker';
16005
+ import { InputMaskModule } from 'primeng/inputmask';
16006
+
16007
+ @Component({
16008
+ template: \`
16009
+ <div class="card flex justify-center">
16010
+ <p-datepicker [(ngModel)]="date" dateFormat="dd/mm/yy" placeholder="dd/mm/yyyy" pInputMask="99/99/9999" />
16011
+ </div>
16012
+ \`,
16013
+ standalone: true,
16014
+ imports: [DatePickerModule, InputMaskModule, FormsModule]
16015
+ })
16016
+ export class DatepickerMaskDemo {
16017
+ date: Date | undefined;
16018
+ }`
16019
+ }
16020
+ },
15870
16021
  {
15871
16022
  id: "methods",
15872
16023
  label: "methods-doc",
@@ -15876,10 +16027,45 @@ export class DatepickerInvalidDemo {
15876
16027
  }
15877
16028
  },
15878
16029
  {
15879
- id: "minmaxdox.ts",
15880
- label: "minmaxdox",
16030
+ id: "minmax",
16031
+ label: "Min / Max",
15881
16032
  description: "Boundaries for the permitted dates that can be entered are defined with minDate and maxDate properties.",
15882
- examples: null
16033
+ examples: {
16034
+ typescript: `import { Component, OnInit } from '@angular/core';
16035
+ import { FormsModule } from '@angular/forms';
16036
+ import { DatePickerModule } from 'primeng/datepicker';
16037
+
16038
+ @Component({
16039
+ template: \`
16040
+ <div class="card flex justify-center">
16041
+ <p-datepicker [(ngModel)]="date" [minDate]="minDate" [maxDate]="maxDate" [readonlyInput]="true" />
16042
+ </div>
16043
+ \`,
16044
+ standalone: true,
16045
+ imports: [DatePickerModule, FormsModule]
16046
+ })
16047
+ export class DatepickerMinmaxDemo implements OnInit {
16048
+ date: Date | undefined;
16049
+ minDate: Date | undefined;
16050
+ maxDate: Date | undefined;
16051
+
16052
+ ngOnInit() {
16053
+ let today = new Date();
16054
+ let month = today.getMonth();
16055
+ let year = today.getFullYear();
16056
+ let prevMonth = month === 0 ? 11 : month - 1;
16057
+ let prevYear = prevMonth === 11 ? year - 1 : year;
16058
+ let nextMonth = month === 11 ? 0 : month + 1;
16059
+ let nextYear = nextMonth === 0 ? year + 1 : year;
16060
+ this.minDate = new Date();
16061
+ this.minDate.setMonth(prevMonth);
16062
+ this.minDate.setFullYear(prevYear);
16063
+ this.maxDate = new Date();
16064
+ this.maxDate.setMonth(nextMonth);
16065
+ this.maxDate.setFullYear(nextYear);
16066
+ }
16067
+ }`
16068
+ }
15883
16069
  },
15884
16070
  {
15885
16071
  id: "month",
@@ -15928,8 +16114,8 @@ export class DatepickerMultipleDemo {
15928
16114
  }
15929
16115
  },
15930
16116
  {
15931
- id: "multiplemonths.",
15932
- label: "multiplemonths.-doc",
16117
+ id: "multiplemonths",
16118
+ label: "Multiple Months",
15933
16119
  description: "Number of months to display is configured with the numberOfMonths property.",
15934
16120
  examples: {
15935
16121
  typescript: `import { Component } from '@angular/core';
@@ -15945,7 +16131,7 @@ import { DatePickerModule } from 'primeng/datepicker';
15945
16131
  standalone: true,
15946
16132
  imports: [DatePickerModule, FormsModule]
15947
16133
  })
15948
- export class DatepickerMultiplemonths.Demo {
16134
+ export class DatepickerMultiplemonthsDemo {
15949
16135
  date: Date[] | undefined;
15950
16136
  }`
15951
16137
  }
@@ -17451,6 +17637,11 @@ export class DatepickerYearDemo {
17451
17637
  variable: "--p-datepicker-title-font-weight",
17452
17638
  description: "Font weight of title"
17453
17639
  },
17640
+ {
17641
+ token: "datepicker.title.font.size",
17642
+ variable: "--p-datepicker-title-font-size",
17643
+ description: "Font size of title"
17644
+ },
17454
17645
  {
17455
17646
  token: "datepicker.dropdown.width",
17456
17647
  variable: "--p-datepicker-dropdown-width",
@@ -17571,6 +17762,16 @@ export class DatepickerYearDemo {
17571
17762
  variable: "--p-datepicker-select-month-border-radius",
17572
17763
  description: "Border radius of select month"
17573
17764
  },
17765
+ {
17766
+ token: "datepicker.select.month.font.weight",
17767
+ variable: "--p-datepicker-select-month-font-weight",
17768
+ description: "Font weight of select month"
17769
+ },
17770
+ {
17771
+ token: "datepicker.select.month.font.size",
17772
+ variable: "--p-datepicker-select-month-font-size",
17773
+ description: "Font size of select month"
17774
+ },
17574
17775
  {
17575
17776
  token: "datepicker.select.year.hover.background",
17576
17777
  variable: "--p-datepicker-select-year-hover-background",
@@ -17596,6 +17797,16 @@ export class DatepickerYearDemo {
17596
17797
  variable: "--p-datepicker-select-year-border-radius",
17597
17798
  description: "Border radius of select year"
17598
17799
  },
17800
+ {
17801
+ token: "datepicker.select.year.font.weight",
17802
+ variable: "--p-datepicker-select-year-font-weight",
17803
+ description: "Font weight of select year"
17804
+ },
17805
+ {
17806
+ token: "datepicker.select.year.font.size",
17807
+ variable: "--p-datepicker-select-year-font-size",
17808
+ description: "Font size of select year"
17809
+ },
17599
17810
  {
17600
17811
  token: "datepicker.group.border.color",
17601
17812
  variable: "--p-datepicker-group-border-color",
@@ -17621,6 +17832,11 @@ export class DatepickerYearDemo {
17621
17832
  variable: "--p-datepicker-week-day-font-weight",
17622
17833
  description: "Font weight of week day"
17623
17834
  },
17835
+ {
17836
+ token: "datepicker.week.day.font.size",
17837
+ variable: "--p-datepicker-week-day-font-size",
17838
+ description: "Font size of week day"
17839
+ },
17624
17840
  {
17625
17841
  token: "datepicker.week.day.color",
17626
17842
  variable: "--p-datepicker-week-day-color",
@@ -17706,6 +17922,16 @@ export class DatepickerYearDemo {
17706
17922
  variable: "--p-datepicker-date-focus-ring-shadow",
17707
17923
  description: "Focus ring shadow of date"
17708
17924
  },
17925
+ {
17926
+ token: "datepicker.date.font.weight",
17927
+ variable: "--p-datepicker-date-font-weight",
17928
+ description: "Font weight of date"
17929
+ },
17930
+ {
17931
+ token: "datepicker.date.font.size",
17932
+ variable: "--p-datepicker-date-font-size",
17933
+ description: "Font size of date"
17934
+ },
17709
17935
  {
17710
17936
  token: "datepicker.month.view.margin",
17711
17937
  variable: "--p-datepicker-month-view-margin",
@@ -17766,6 +17992,21 @@ export class DatepickerYearDemo {
17766
17992
  variable: "--p-datepicker-time-picker-button-gap",
17767
17993
  description: "Button gap of time picker"
17768
17994
  },
17995
+ {
17996
+ token: "datepicker.time.picker.color",
17997
+ variable: "--p-datepicker-time-picker-color",
17998
+ description: "Color of time picker label"
17999
+ },
18000
+ {
18001
+ token: "datepicker.time.picker.font.weight",
18002
+ variable: "--p-datepicker-time-picker-font-weight",
18003
+ description: "Font weight of time picker label"
18004
+ },
18005
+ {
18006
+ token: "datepicker.time.picker.font.size",
18007
+ variable: "--p-datepicker-time-picker-font-size",
18008
+ description: "Font size of time picker label"
18009
+ },
17769
18010
  {
17770
18011
  token: "datepicker.today.background",
17771
18012
  variable: "--p-datepicker-today-background",
@@ -17788,13 +18029,7 @@ export class DatepickerYearDemo {
17788
18029
  id: "accessibility",
17789
18030
  label: "Accessibility",
17790
18031
  description: "Screen Reader Dialog component uses dialog role along with aria-labelledby referring to the header element however any attribute is passed to the root element so you may use aria-labelledby to override this default behavior. In addition aria-modal is added since focus is kept within the popup. It is recommended to use a trigger component that can be accessed with keyboard such as a button, if not adding tabIndex would be necessary. Trigger element also requires aria-expanded and aria-controls to be handled explicitly. Close element is a button with an aria-label that refers to the aria.close property of the locale API by default, you may use closeButtonProps to customize the element and override the default aria-label . Maximize element is a button with an aria-label that refers to the aria.maximizeLabel and aria.minimizeLabel property of the locale API. It cannot be customized using the maximizeButtonProps . Overlay Keyboard Support Key Function tab Moves focus to the next the focusable element within the dialog. shift + tab Moves focus to the previous the focusable element within the dialog. escape Closes the dialog if closeOnEscape is true. Close Button Keyboard Support Key Function enter Closes the dialog. space Closes the dialog.",
17791
- examples: {
17792
- typescript: `<p-button icon="pi pi-external-link" (click)="visible = true" aria-controls="{{visible ? 'dialog' : null}}" aria-expanded="{{visible ? true : false}}" />
17793
-
17794
- <p-dialog id="dialog" header="Header" [(visible)]="visible" [style]="{ width: '50vw' }" (onHide)="visible = false">
17795
- <p>Content</p>
17796
- </p-dialog>`
17797
- }
18032
+ examples: null
17798
18033
  },
17799
18034
  {
17800
18035
  id: "basic",
@@ -20228,22 +20463,7 @@ export class DragdropDropindicatorDemo implements OnInit {
20228
20463
  id: "accessibility",
20229
20464
  label: "Accessibility",
20230
20465
  description: "Screen Reader Drawer component uses complementary role by default, since any attribute is passed to the root element aria role can be changed depending on your use case and additional attributes like aria-labelledby can be added. In addition aria-modal is added since focus is kept within the drawer when opened. It is recommended to use a trigger component that can be accessed with keyboard such as a button, if not adding tabIndex would be necessary. Trigger element also requires aria-expanded and aria-controls to be handled explicitly. Overlay Keyboard Support Key Function tab Moves focus to the next the focusable element within the drawer. shift + tab Moves focus to the previous the focusable element within the drawer. escape Closes the dialog if closeOnEscape is true. Close Button Keyboard Support Key Function enter Closes the drawer. space Closes the drawer.",
20231
- examples: {
20232
- typescript: `<p-button
20233
- icon="pi pi-arrow-right"
20234
- (click)="visible = true"
20235
- aria-controls="{{visible ? 'drawer' : null}}"
20236
- aria-expanded="{{visible ? true : false}}"
20237
- ></p-button>
20238
- <p-drawer
20239
- [(visible)]="visible"
20240
- id="drawer"
20241
- (onHide)="visible = false"
20242
- role="region"
20243
- >
20244
- content
20245
- </p-drawer>`
20246
- }
20466
+ examples: null
20247
20467
  },
20248
20468
  {
20249
20469
  id: "basic",
@@ -22097,6 +22317,11 @@ export class FieldsetToggleableDemo {}`
22097
22317
  variable: "--p-fieldset-legend-font-weight",
22098
22318
  description: "Font weight of legend"
22099
22319
  },
22320
+ {
22321
+ token: "fieldset.legend.font.size",
22322
+ variable: "--p-fieldset-legend-font-size",
22323
+ description: "Font size of legend"
22324
+ },
22100
22325
  {
22101
22326
  token: "fieldset.legend.focus.ring.width",
22102
22327
  variable: "--p-fieldset-legend-focus-ring-width",
@@ -23173,6 +23398,36 @@ export class FileuploadTemplateDemo {
23173
23398
  variable: "--p-fileupload-file-info-gap",
23174
23399
  description: "Info gap of file"
23175
23400
  },
23401
+ {
23402
+ token: "fileupload.file.name.color",
23403
+ variable: "--p-fileupload-file-name-color",
23404
+ description: "Color of file name"
23405
+ },
23406
+ {
23407
+ token: "fileupload.file.name.font.weight",
23408
+ variable: "--p-fileupload-file-name-font-weight",
23409
+ description: "Font weight of file name"
23410
+ },
23411
+ {
23412
+ token: "fileupload.file.name.font.size",
23413
+ variable: "--p-fileupload-file-name-font-size",
23414
+ description: "Font size of file name"
23415
+ },
23416
+ {
23417
+ token: "fileupload.file.size.color",
23418
+ variable: "--p-fileupload-file-size-color",
23419
+ description: "Color of file size"
23420
+ },
23421
+ {
23422
+ token: "fileupload.file.size.font.weight",
23423
+ variable: "--p-fileupload-file-size-font-weight",
23424
+ description: "Font weight of file size"
23425
+ },
23426
+ {
23427
+ token: "fileupload.file.size.font.size",
23428
+ variable: "--p-fileupload-file-size-font-size",
23429
+ description: "Font size of file size"
23430
+ },
23176
23431
  {
23177
23432
  token: "fileupload.file.list.gap",
23178
23433
  variable: "--p-fileupload-file-list-gap",
@@ -23394,6 +23649,11 @@ export class FloatlabelVariantsDemo {
23394
23649
  variable: "--p-floatlabel-position-y",
23395
23650
  description: "Position y of root"
23396
23651
  },
23652
+ {
23653
+ token: "floatlabel.font.size",
23654
+ variable: "--p-floatlabel-font-size",
23655
+ description: "Font size of root"
23656
+ },
23397
23657
  {
23398
23658
  token: "floatlabel.font.weight",
23399
23659
  variable: "--p-floatlabel-font-weight",
@@ -25465,9 +25725,7 @@ export class IftalabelInvalidDemo {
25465
25725
  id: "accessibility",
25466
25726
  label: "Accessibility",
25467
25727
  description: "Screen Reader ImageComponent component uses a native range slider internally. Value to describe the component can be defined using aria-labelledby and aria-label props. Keyboard Support Key Function tab Moves focus to the component. left arrow up arrow Decrements the value. right arrow down arrow Increments the value. home Set the minimum value. end Set the maximum value. page up Increments the value by 10 steps. page down Decrements the value by 10 steps.",
25468
- examples: {
25469
- typescript: '<span id="image_label">Compare Images</span>\n<p-imagecompare class="shadow-lg rounded-2xl" aria-labelledby="image-label">\n ...\n</p-imagecompare>\n\n<p-imagecompare class="shadow-lg rounded-2xl" aria-label="Compare Images">\n ...\n</p-imagecompare>'
25470
- }
25728
+ examples: null
25471
25729
  },
25472
25730
  {
25473
25731
  id: "basic",
@@ -26447,6 +26705,16 @@ export class InputgroupMultipleDemo {}`
26447
26705
  token: "inputgroup.addon.min.width",
26448
26706
  variable: "--p-inputgroup-addon-min-width",
26449
26707
  description: "Min width of addon"
26708
+ },
26709
+ {
26710
+ token: "inputgroup.addon.font.weight",
26711
+ variable: "--p-inputgroup-addon-font-weight",
26712
+ description: "Font weight of addon"
26713
+ },
26714
+ {
26715
+ token: "inputgroup.addon.font.size",
26716
+ variable: "--p-inputgroup-addon-font-size",
26717
+ description: "Font size of addon"
26450
26718
  }
26451
26719
  ]
26452
26720
  }
@@ -26459,10 +26727,8 @@ export class InputgroupMultipleDemo {}`
26459
26727
  {
26460
26728
  id: "accessibility",
26461
26729
  label: "Accessibility",
26462
- description: "Screen Reader InputMask component renders a native input element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using ariaLabelledBy , ariaLabel props.",
26463
- examples: {
26464
- typescript: '<label for="date">Date</label>\n<p-inputmask inputId="date"/>\n\n<span id="phone">Phone</span>\n<p-inputmask ariaLabelledBy="phone"/>\n\n<p-inputmask ariaLabel="Age"/>'
26465
- }
26730
+ description: "Screen Reader InputMask directive is used with a native input element that implicitly includes any passed attribute. Value to describe the component can either be provided via label tag combined with id attribute or using aria-labelledby , aria-label attributes.",
26731
+ examples: null
26466
26732
  },
26467
26733
  {
26468
26734
  id: "basic",
@@ -26471,16 +26737,17 @@ export class InputgroupMultipleDemo {}`
26471
26737
  examples: {
26472
26738
  typescript: `import { Component } from '@angular/core';
26473
26739
  import { FormsModule } from '@angular/forms';
26740
+ import { InputTextModule } from 'primeng/inputtext';
26474
26741
  import { InputMaskModule } from 'primeng/inputmask';
26475
26742
 
26476
26743
  @Component({
26477
26744
  template: \`
26478
26745
  <div class="card flex justify-center">
26479
- <p-inputmask mask="99-999999" [(ngModel)]="value" placeholder="99-999999" />
26746
+ <input pInputText pInputMask="99-999999" [(ngModel)]="value" placeholder="99-999999" />
26480
26747
  </div>
26481
26748
  \`,
26482
26749
  standalone: true,
26483
- imports: [InputMaskModule, FormsModule]
26750
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26484
26751
  })
26485
26752
  export class InputmaskBasicDemo {
26486
26753
  value: string | undefined;
@@ -26489,7 +26756,7 @@ export class InputmaskBasicDemo {
26489
26756
  },
26490
26757
  {
26491
26758
  id: "clearicon",
26492
- label: "Clear Icon",
26759
+ label: "clearicon-doc",
26493
26760
  description: "When showClear is enabled, a clear icon is displayed to clear the value.",
26494
26761
  examples: {
26495
26762
  typescript: `import { Component } from '@angular/core';
@@ -26517,16 +26784,17 @@ export class InputmaskCleariconDemo {
26517
26784
  examples: {
26518
26785
  typescript: `import { Component } from '@angular/core';
26519
26786
  import { FormsModule } from '@angular/forms';
26787
+ import { InputTextModule } from 'primeng/inputtext';
26520
26788
  import { InputMaskModule } from 'primeng/inputmask';
26521
26789
 
26522
26790
  @Component({
26523
26791
  template: \`
26524
26792
  <div class="card flex justify-center">
26525
- <p-inputmask mask="999-99-9999" [(ngModel)]="value" [disabled]="true" />
26793
+ <input pInputText pInputMask="999-99-9999" [(ngModel)]="value" disabled />
26526
26794
  </div>
26527
26795
  \`,
26528
26796
  standalone: true,
26529
- imports: [InputMaskModule, FormsModule]
26797
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26530
26798
  })
26531
26799
  export class InputmaskDisabledDemo {
26532
26800
  value: string | undefined;
@@ -26540,16 +26808,17 @@ export class InputmaskDisabledDemo {
26540
26808
  examples: {
26541
26809
  typescript: `import { Component } from '@angular/core';
26542
26810
  import { FormsModule } from '@angular/forms';
26811
+ import { InputTextModule } from 'primeng/inputtext';
26543
26812
  import { InputMaskModule } from 'primeng/inputmask';
26544
26813
 
26545
26814
  @Component({
26546
26815
  template: \`
26547
26816
  <div class="card flex justify-center">
26548
- <p-inputmask mask="99-999999" [(ngModel)]="value" variant="filled" placeholder="99-999999" />
26817
+ <input pInputText pInputMask="99-999999" [(ngModel)]="value" variant="filled" placeholder="99-999999" />
26549
26818
  </div>
26550
26819
  \`,
26551
26820
  standalone: true,
26552
- imports: [InputMaskModule, FormsModule]
26821
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26553
26822
  })
26554
26823
  export class InputmaskFilledDemo {
26555
26824
  value: string | undefined;
@@ -26564,27 +26833,28 @@ export class InputmaskFilledDemo {
26564
26833
  typescript: `import { Component } from '@angular/core';
26565
26834
  import { FormsModule } from '@angular/forms';
26566
26835
  import { FloatLabelModule } from 'primeng/floatlabel';
26836
+ import { InputTextModule } from 'primeng/inputtext';
26567
26837
  import { InputMaskModule } from 'primeng/inputmask';
26568
26838
 
26569
26839
  @Component({
26570
26840
  template: \`
26571
26841
  <div class="card flex flex-wrap justify-center items-end gap-4">
26572
26842
  <p-floatlabel>
26573
- <p-inputmask id="over_label" [(ngModel)]="value1" mask="999-99-9999" />
26843
+ <input pInputText id="over_label" [(ngModel)]="value1" pInputMask="999-99-9999" />
26574
26844
  <label for="over_label">Over Label</label>
26575
26845
  </p-floatlabel>
26576
26846
  <p-floatlabel variant="in">
26577
- <p-inputmask id="in_label" [(ngModel)]="value2" mask="999-99-9999" />
26847
+ <input pInputText id="in_label" [(ngModel)]="value2" pInputMask="999-99-9999" />
26578
26848
  <label for="in_label">In Label</label>
26579
26849
  </p-floatlabel>
26580
26850
  <p-floatlabel variant="on">
26581
- <p-inputmask id="on_label" [(ngModel)]="value3" mask="999-99-9999" />
26851
+ <input pInputText id="on_label" [(ngModel)]="value3" pInputMask="999-99-9999" />
26582
26852
  <label for="on_label">On Label</label>
26583
26853
  </p-floatlabel>
26584
26854
  </div>
26585
26855
  \`,
26586
26856
  standalone: true,
26587
- imports: [FloatLabelModule, InputMaskModule, FormsModule]
26857
+ imports: [FloatLabelModule, InputTextModule, InputMaskModule, FormsModule]
26588
26858
  })
26589
26859
  export class InputmaskFloatlabelDemo {
26590
26860
  value1: string | undefined;
@@ -26600,16 +26870,17 @@ export class InputmaskFloatlabelDemo {
26600
26870
  examples: {
26601
26871
  typescript: `import { Component } from '@angular/core';
26602
26872
  import { FormsModule } from '@angular/forms';
26873
+ import { InputTextModule } from 'primeng/inputtext';
26603
26874
  import { InputMaskModule } from 'primeng/inputmask';
26604
26875
 
26605
26876
  @Component({
26606
26877
  template: \`
26607
26878
  <div class="card">
26608
- <p-inputmask mask="99-999999" [(ngModel)]="value" placeholder="99-999999" fluid />
26879
+ <input pInputText pInputMask="99-999999" [(ngModel)]="value" placeholder="99-999999" fluid />
26609
26880
  </div>
26610
26881
  \`,
26611
26882
  standalone: true,
26612
- imports: [InputMaskModule, FormsModule]
26883
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26613
26884
  })
26614
26885
  export class InputmaskFluidDemo {
26615
26886
  value: string | undefined;
@@ -26624,19 +26895,20 @@ export class InputmaskFluidDemo {
26624
26895
  typescript: `import { Component } from '@angular/core';
26625
26896
  import { FormsModule } from '@angular/forms';
26626
26897
  import { IftaLabelModule } from 'primeng/iftalabel';
26898
+ import { InputTextModule } from 'primeng/inputtext';
26627
26899
  import { InputMaskModule } from 'primeng/inputmask';
26628
26900
 
26629
26901
  @Component({
26630
26902
  template: \`
26631
26903
  <div class="card flex justify-center">
26632
26904
  <p-iftalabel>
26633
- <p-inputmask id="ssn" [(ngModel)]="value" mask="999-99-9999" autocomplete="off" />
26905
+ <input pInputText id="ssn" [(ngModel)]="value" pInputMask="999-99-9999" autocomplete="off" />
26634
26906
  <label for="ssn">SSN</label>
26635
26907
  </p-iftalabel>
26636
26908
  </div>
26637
26909
  \`,
26638
26910
  standalone: true,
26639
- imports: [IftaLabelModule, InputMaskModule, FormsModule]
26911
+ imports: [IftaLabelModule, InputTextModule, InputMaskModule, FormsModule]
26640
26912
  })
26641
26913
  export class InputmaskIftalabelDemo {
26642
26914
  value: string | undefined;
@@ -26650,17 +26922,18 @@ export class InputmaskIftalabelDemo {
26650
26922
  examples: {
26651
26923
  typescript: `import { Component } from '@angular/core';
26652
26924
  import { FormsModule } from '@angular/forms';
26925
+ import { InputTextModule } from 'primeng/inputtext';
26653
26926
  import { InputMaskModule } from 'primeng/inputmask';
26654
26927
 
26655
26928
  @Component({
26656
26929
  template: \`
26657
26930
  <div class="card flex flex-wrap justify-center gap-4">
26658
- <p-inputmask [(ngModel)]="value1" mask="99-999999" placeholder="Serial Key" [invalid]="!value1" />
26659
- <p-inputmask [(ngModel)]="value2" mask="99-999999" placeholder="Serial Key" [invalid]="!value2" variant="filled" />
26931
+ <input pInputText [(ngModel)]="value1" pInputMask="99-999999" placeholder="Serial Key" [invalid]="!value1" />
26932
+ <input pInputText [(ngModel)]="value2" pInputMask="99-999999" placeholder="Serial Key" [invalid]="!value2" variant="filled" />
26660
26933
  </div>
26661
26934
  \`,
26662
26935
  standalone: true,
26663
- imports: [InputMaskModule, FormsModule]
26936
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26664
26937
  })
26665
26938
  export class InputmaskInvalidDemo {
26666
26939
  value1: string | undefined;
@@ -26675,6 +26948,7 @@ export class InputmaskInvalidDemo {
26675
26948
  examples: {
26676
26949
  typescript: `import { Component } from '@angular/core';
26677
26950
  import { FormsModule } from '@angular/forms';
26951
+ import { InputTextModule } from 'primeng/inputtext';
26678
26952
  import { InputMaskModule } from 'primeng/inputmask';
26679
26953
 
26680
26954
  @Component({
@@ -26682,20 +26956,20 @@ import { InputMaskModule } from 'primeng/inputmask';
26682
26956
  <p-fluid class="card flex flex-wrap gap-4">
26683
26957
  <div class="flex-auto">
26684
26958
  <span class="font-bold block mb-2">SSN</span>
26685
- <p-inputmask mask="999-99-9999" [(ngModel)]="value1" placeholder="999-99-9999" />
26959
+ <input pInputText pInputMask="999-99-9999" [(ngModel)]="value1" placeholder="999-99-9999" />
26686
26960
  </div>
26687
26961
  <div class="flex-auto">
26688
26962
  <span class="font-bold block mb-2">Phone</span>
26689
- <p-inputmask mask="(999) 999-9999" [(ngModel)]="value2" placeholder="(999) 999-9999" />
26963
+ <input pInputText pInputMask="(999) 999-9999" [(ngModel)]="value2" placeholder="(999) 999-9999" />
26690
26964
  </div>
26691
26965
  <div class="flex-auto">
26692
26966
  <span class="font-bold block mb-2">Serial Number</span>
26693
- <p-inputmask mask="a*-999-a999" [(ngModel)]="value3" placeholder="a*-999-a999" />
26967
+ <input pInputText pInputMask="a*-999-a999" [(ngModel)]="value3" placeholder="a*-999-a999" />
26694
26968
  </div>
26695
26969
  </p-fluid>
26696
26970
  \`,
26697
26971
  standalone: true,
26698
- imports: [InputMaskModule, FormsModule]
26972
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26699
26973
  })
26700
26974
  export class InputmaskMaskDemo {
26701
26975
  value1: string | undefined;
@@ -26711,16 +26985,17 @@ export class InputmaskMaskDemo {
26711
26985
  examples: {
26712
26986
  typescript: `import { Component } from '@angular/core';
26713
26987
  import { FormsModule } from '@angular/forms';
26988
+ import { InputTextModule } from 'primeng/inputtext';
26714
26989
  import { InputMaskModule } from 'primeng/inputmask';
26715
26990
 
26716
26991
  @Component({
26717
26992
  template: \`
26718
26993
  <div class="card flex justify-center">
26719
- <p-inputmask mask="(999) 999-9999? x99999" [(ngModel)]="value" placeholder="(999) 999-9999? x99999" />
26994
+ <input pInputText pInputMask="(999) 999-9999? x99999" [(ngModel)]="value" placeholder="(999) 999-9999? x99999" />
26720
26995
  </div>
26721
26996
  \`,
26722
26997
  standalone: true,
26723
- imports: [InputMaskModule, FormsModule]
26998
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26724
26999
  })
26725
27000
  export class InputmaskOptionalDemo {
26726
27001
  value: string | undefined;
@@ -26734,10 +27009,11 @@ export class InputmaskOptionalDemo {
26734
27009
  examples: {
26735
27010
  typescript: `import { Component, inject } from '@angular/core';
26736
27011
  import { ReactiveFormsModule } from '@angular/forms';
26737
- import { InputMaskModule } from 'primeng/inputmask';
26738
27012
  import { MessageModule } from 'primeng/message';
26739
27013
  import { ToastModule } from 'primeng/toast';
26740
27014
  import { ButtonModule } from 'primeng/button';
27015
+ import { InputTextModule } from 'primeng/inputtext';
27016
+ import { InputMaskModule } from 'primeng/inputmask';
26741
27017
  import { MessageService } from 'primeng/api';
26742
27018
 
26743
27019
  @Component({
@@ -26746,7 +27022,7 @@ import { MessageService } from 'primeng/api';
26746
27022
  <div class="card flex justify-center">
26747
27023
  <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4 sm:w-56">
26748
27024
  <div class="flex flex-col gap-1">
26749
- <p-inputmask mask="99-999999" formControlName="value" placeholder="99-999999" [invalid]="isInvalid('value')" fluid />
27025
+ <input pInputText pInputMask="99-999999" formControlName="value" placeholder="99-999999" [invalid]="isInvalid('value')" fluid />
26750
27026
  @if (isInvalid('value')) {
26751
27027
  <p-message severity="error" size="small" variant="simple">Serial number is required.</p-message>
26752
27028
  }
@@ -26756,7 +27032,7 @@ import { MessageService } from 'primeng/api';
26756
27032
  </div>
26757
27033
  \`,
26758
27034
  standalone: true,
26759
- imports: [InputMaskModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
27035
+ imports: [MessageModule, ToastModule, ButtonModule, InputTextModule, InputMaskModule, ReactiveFormsModule]
26760
27036
  })
26761
27037
  export class InputmaskReactiveformsDemo {
26762
27038
  messageService = inject(MessageService);
@@ -26793,18 +27069,19 @@ export class InputmaskReactiveformsDemo {
26793
27069
  examples: {
26794
27070
  typescript: `import { Component } from '@angular/core';
26795
27071
  import { FormsModule } from '@angular/forms';
27072
+ import { InputTextModule } from 'primeng/inputtext';
26796
27073
  import { InputMaskModule } from 'primeng/inputmask';
26797
27074
 
26798
27075
  @Component({
26799
27076
  template: \`
26800
27077
  <div class="card flex flex-col items-center gap-4">
26801
- <p-inputmask [(ngModel)]="value1" placeholder="Small" size="small" mask="99-999999" />
26802
- <p-inputmask [(ngModel)]="value2" placeholder="Normal" mask="99-999999" />
26803
- <p-inputmask [(ngModel)]="value3" placeholder="Large" size="large" mask="99-999999" />
27078
+ <input pInputText [(ngModel)]="value1" placeholder="Small" pSize="small" pInputMask="99-999999" />
27079
+ <input pInputText [(ngModel)]="value2" placeholder="Normal" pInputMask="99-999999" />
27080
+ <input pInputText [(ngModel)]="value3" placeholder="Large" pSize="large" pInputMask="99-999999" />
26804
27081
  </div>
26805
27082
  \`,
26806
27083
  standalone: true,
26807
- imports: [InputMaskModule, FormsModule]
27084
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26808
27085
  })
26809
27086
  export class InputmaskSizesDemo {
26810
27087
  value1: string | undefined;
@@ -26820,16 +27097,17 @@ export class InputmaskSizesDemo {
26820
27097
  examples: {
26821
27098
  typescript: `import { Component } from '@angular/core';
26822
27099
  import { FormsModule } from '@angular/forms';
27100
+ import { InputTextModule } from 'primeng/inputtext';
26823
27101
  import { InputMaskModule } from 'primeng/inputmask';
26824
27102
 
26825
27103
  @Component({
26826
27104
  template: \`
26827
27105
  <div class="card flex justify-center">
26828
- <p-inputmask [(ngModel)]="value" mask="99/99/9999" placeholder="99/99/9999" slotChar="mm/dd/yyyy" />
27106
+ <input pInputText [(ngModel)]="value" pInputMask="99/99/9999" placeholder="99/99/9999" slotChar="mm/dd/yyyy" />
26829
27107
  </div>
26830
27108
  \`,
26831
27109
  standalone: true,
26832
- imports: [InputMaskModule, FormsModule]
27110
+ imports: [InputTextModule, InputMaskModule, FormsModule]
26833
27111
  })
26834
27112
  export class InputmaskSlotcharDemo {
26835
27113
  value: string | undefined;
@@ -26843,10 +27121,11 @@ export class InputmaskSlotcharDemo {
26843
27121
  examples: {
26844
27122
  typescript: `import { Component, inject } from '@angular/core';
26845
27123
  import { FormsModule } from '@angular/forms';
26846
- import { InputMaskModule } from 'primeng/inputmask';
26847
27124
  import { MessageModule } from 'primeng/message';
26848
27125
  import { ToastModule } from 'primeng/toast';
26849
27126
  import { ButtonModule } from 'primeng/button';
27127
+ import { InputTextModule } from 'primeng/inputtext';
27128
+ import { InputMaskModule } from 'primeng/inputmask';
26850
27129
  import { MessageService } from 'primeng/api';
26851
27130
 
26852
27131
  @Component({
@@ -26855,7 +27134,7 @@ import { MessageService } from 'primeng/api';
26855
27134
  <div class="card flex justify-center">
26856
27135
  <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex justify-center flex-col gap-4 md:w-56">
26857
27136
  <div class="flex flex-col gap-1">
26858
- <p-inputmask name="serial" mask="99-999999" #serialNumber="ngModel" [(ngModel)]="value" placeholder="99-999999" [invalid]="serialNumber.invalid && (serialNumber.touched || exampleForm.submitted)" required fluid />
27137
+ <input pInputText name="serial" pInputMask="99-999999" #serialNumber="ngModel" [(ngModel)]="value" placeholder="99-999999" [invalid]="serialNumber.invalid && (serialNumber.touched || exampleForm.submitted)" required fluid />
26859
27138
  @if (serialNumber.invalid && (serialNumber.touched || exampleForm.submitted)) {
26860
27139
  <p-message severity="error" size="small" variant="simple">Serial number is required.</p-message>
26861
27140
  }
@@ -26865,7 +27144,7 @@ import { MessageService } from 'primeng/api';
26865
27144
  </div>
26866
27145
  \`,
26867
27146
  standalone: true,
26868
- imports: [InputMaskModule, MessageModule, ToastModule, ButtonModule, FormsModule]
27147
+ imports: [MessageModule, ToastModule, ButtonModule, InputTextModule, InputMaskModule, FormsModule]
26869
27148
  })
26870
27149
  export class InputmaskTemplatedrivenformsDemo {
26871
27150
  messageService = inject(MessageService);
@@ -27265,9 +27544,7 @@ export class InputmaskTemplatedrivenformsDemo {
27265
27544
  id: "accessibility",
27266
27545
  label: "Accessibility",
27267
27546
  description: "Screen Reader Value to describe the component can either be provided via label tag combined with inputId prop or using ariaLabelledBy , ariaLabel , ariaDescribedBy props. The input element uses spinbutton role in addition to the aria-valuemin , aria-valuemax and aria-valuenow attributes.",
27268
- examples: {
27269
- typescript: '<label for="price">Price</label>\n<p-inputnumber inputId="price" />\n\n<span id="label_number">Number</span>\n<p-inputnumber ariaLabelledBy="label_number" />\n\n<p-inputnumber ariaLabel="Number" />\n\n<p-inputnumber ariaDescribedBy="describe" />\n<small id="describe">Information</small>'
27270
- }
27547
+ examples: null
27271
27548
  },
27272
27549
  {
27273
27550
  id: "buttons",
@@ -28887,9 +29164,7 @@ export class InputotpTemplatedrivenformsDemo {
28887
29164
  id: "accessibility",
28888
29165
  label: "Accessibility",
28889
29166
  description: "Screen Reader InputText component renders a native input element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby , aria-label props.",
28890
- examples: {
28891
- typescript: '<label for="firstname">Firstname</label>\n<input pInputText id="firstname" />\n\n<span id="lastname">Lastname</span>\n<input pInputText aria-labelledby="lastname" />\n\n<input pInputText aria-label="Age" />'
28892
- }
29167
+ examples: null
28893
29168
  },
28894
29169
  {
28895
29170
  id: "basic",
@@ -29549,6 +29824,16 @@ export class InputtextTemplatedrivenformsDemo {
29549
29824
  token: "inputtext.lg.padding.y",
29550
29825
  variable: "--p-inputtext-lg-padding-y",
29551
29826
  description: "Lg padding y of root"
29827
+ },
29828
+ {
29829
+ token: "inputtext.font.weight",
29830
+ variable: "--p-inputtext-font-weight",
29831
+ description: "Font weight of root"
29832
+ },
29833
+ {
29834
+ token: "inputtext.font.size",
29835
+ variable: "--p-inputtext-font-size",
29836
+ description: "Font size of root"
29552
29837
  }
29553
29838
  ]
29554
29839
  }
@@ -29687,9 +29972,7 @@ export class KeyfilterRegexDemo {
29687
29972
  id: "accessibility",
29688
29973
  label: "Accessibility",
29689
29974
  description: "Screen Reader Knob element component uses slider role in addition to the aria-valuemin , aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using ariaLabelledBy and ariaLabel props.",
29690
- examples: {
29691
- typescript: '<span id="label_number">Number</span>\n<p-knob ariaLabelledBy="label_number"/>\n\n<p-knob ariaLabel="Number"/>'
29692
- }
29975
+ examples: null
29693
29976
  },
29694
29977
  {
29695
29978
  id: "basic",
@@ -30344,6 +30627,16 @@ export class KnobTemplatedrivenformsDemo {
30344
30627
  token: "knob.text.color",
30345
30628
  variable: "--p-knob-text-color",
30346
30629
  description: "Color of text"
30630
+ },
30631
+ {
30632
+ token: "knob.text.font.size",
30633
+ variable: "--p-knob-text-font-size",
30634
+ description: "Font size of text"
30635
+ },
30636
+ {
30637
+ token: "knob.text.font.weight",
30638
+ variable: "--p-knob-text-font-weight",
30639
+ description: "Font weight of text"
30347
30640
  }
30348
30641
  ]
30349
30642
  }
@@ -30357,9 +30650,7 @@ export class KnobTemplatedrivenformsDemo {
30357
30650
  id: "accessibility",
30358
30651
  label: "Accessibility",
30359
30652
  description: "Screen Reader Value to describe the component can be provided ariaLabelledBy or ariaLabel props. The list element has a listbox role with the aria-multiselectable attribute that sets to true when multiple selection is enabled. Each list item has an option role with aria-selected and aria-disabled as their attributes.",
30360
- examples: {
30361
- typescript: '<span id="lb">Options</span>\n<p-listbox ariaLabelledBy="lb"/>\n\n<p-listbox ariaLabel="City"/>'
30362
- }
30653
+ examples: null
30363
30654
  },
30364
30655
  {
30365
30656
  id: "basic",
@@ -31784,6 +32075,11 @@ export class ListboxVirtualscrollDemo {
31784
32075
  variable: "--p-listbox-option-selected-focus-color",
31785
32076
  description: "Selected focus color of option"
31786
32077
  },
32078
+ {
32079
+ token: "listbox.option.selected.font.weight",
32080
+ variable: "--p-listbox-option-selected-font-weight",
32081
+ description: "Font weight of a selected option"
32082
+ },
31787
32083
  {
31788
32084
  token: "listbox.option.padding",
31789
32085
  variable: "--p-listbox-option-padding",
@@ -31799,6 +32095,16 @@ export class ListboxVirtualscrollDemo {
31799
32095
  variable: "--p-listbox-option-striped-background",
31800
32096
  description: "Striped background of option"
31801
32097
  },
32098
+ {
32099
+ token: "listbox.option.font.weight",
32100
+ variable: "--p-listbox-option-font-weight",
32101
+ description: "Font weight of option"
32102
+ },
32103
+ {
32104
+ token: "listbox.option.font.size",
32105
+ variable: "--p-listbox-option-font-size",
32106
+ description: "Font size of option"
32107
+ },
31802
32108
  {
31803
32109
  token: "listbox.option.group.background",
31804
32110
  variable: "--p-listbox-option-group-background",
@@ -31814,6 +32120,11 @@ export class ListboxVirtualscrollDemo {
31814
32120
  variable: "--p-listbox-option-group-font-weight",
31815
32121
  description: "Font weight of option group"
31816
32122
  },
32123
+ {
32124
+ token: "listbox.option.group.font.size",
32125
+ variable: "--p-listbox-option-group-font-size",
32126
+ description: "Font size of option group"
32127
+ },
31817
32128
  {
31818
32129
  token: "listbox.option.group.padding",
31819
32130
  variable: "--p-listbox-option-group-padding",
@@ -32835,6 +33146,21 @@ export class MegamenuVerticalDemo implements OnInit {
32835
33146
  variable: "--p-megamenu-item-icon-active-color",
32836
33147
  description: "Icon active color of item"
32837
33148
  },
33149
+ {
33150
+ token: "megamenu.item.icon.size",
33151
+ variable: "--p-megamenu-item-icon-size",
33152
+ description: "Icon size of item"
33153
+ },
33154
+ {
33155
+ token: "megamenu.item.label.font.weight",
33156
+ variable: "--p-megamenu-item-label-font-weight",
33157
+ description: "Font weight of item label"
33158
+ },
33159
+ {
33160
+ token: "megamenu.item.label.font.size",
33161
+ variable: "--p-megamenu-item-label-font-size",
33162
+ description: "Font size of item label"
33163
+ },
32838
33164
  {
32839
33165
  token: "megamenu.overlay.padding",
32840
33166
  variable: "--p-megamenu-overlay-padding",
@@ -32890,6 +33216,11 @@ export class MegamenuVerticalDemo implements OnInit {
32890
33216
  variable: "--p-megamenu-submenu-label-font-weight",
32891
33217
  description: "Font weight of submenu label"
32892
33218
  },
33219
+ {
33220
+ token: "megamenu.submenu.label.font.size",
33221
+ variable: "--p-megamenu-submenu-label-font-size",
33222
+ description: "Font size of submenu label"
33223
+ },
32893
33224
  {
32894
33225
  token: "megamenu.submenu.label.background",
32895
33226
  variable: "--p-megamenu-submenu-label-background",
@@ -33772,6 +34103,21 @@ export class MenuTemplateDemo implements OnInit {
33772
34103
  variable: "--p-menu-item-icon-focus-color",
33773
34104
  description: "Icon focus color of item"
33774
34105
  },
34106
+ {
34107
+ token: "menu.item.icon.size",
34108
+ variable: "--p-menu-item-icon-size",
34109
+ description: "Icon size of item"
34110
+ },
34111
+ {
34112
+ token: "menu.item.label.font.weight",
34113
+ variable: "--p-menu-item-label-font-weight",
34114
+ description: "Font weight of item label"
34115
+ },
34116
+ {
34117
+ token: "menu.item.label.font.size",
34118
+ variable: "--p-menu-item-label-font-size",
34119
+ description: "Font size of item label"
34120
+ },
33775
34121
  {
33776
34122
  token: "menu.submenu.label.padding",
33777
34123
  variable: "--p-menu-submenu-label-padding",
@@ -33782,6 +34128,11 @@ export class MenuTemplateDemo implements OnInit {
33782
34128
  variable: "--p-menu-submenu-label-font-weight",
33783
34129
  description: "Font weight of submenu label"
33784
34130
  },
34131
+ {
34132
+ token: "menu.submenu.label.font.size",
34133
+ variable: "--p-menu-submenu-label-font-size",
34134
+ description: "Font size of submenu label"
34135
+ },
33785
34136
  {
33786
34137
  token: "menu.submenu.label.background",
33787
34138
  variable: "--p-menu-submenu-label-background",
@@ -34531,6 +34882,21 @@ export class MenubarTemplateDemo implements OnInit {
34531
34882
  variable: "--p-menubar-item-icon-active-color",
34532
34883
  description: "Icon active color of item"
34533
34884
  },
34885
+ {
34886
+ token: "menubar.item.icon.size",
34887
+ variable: "--p-menubar-item-icon-size",
34888
+ description: "Icon size of item"
34889
+ },
34890
+ {
34891
+ token: "menubar.item.label.font.weight",
34892
+ variable: "--p-menubar-item-label-font-weight",
34893
+ description: "Font weight of item label"
34894
+ },
34895
+ {
34896
+ token: "menubar.item.label.font.size",
34897
+ variable: "--p-menubar-item-label-font-size",
34898
+ description: "Font size of item label"
34899
+ },
34534
34900
  {
34535
34901
  token: "menubar.submenu.padding",
34536
34902
  variable: "--p-menubar-submenu-padding",
@@ -36003,6 +36369,16 @@ export class MetergroupVerticalDemo {
36003
36369
  variable: "--p-metergroup-label-marker-size",
36004
36370
  description: "Size of label marker"
36005
36371
  },
36372
+ {
36373
+ token: "metergroup.label.text.font.weight",
36374
+ variable: "--p-metergroup-label-text-font-weight",
36375
+ description: "Font weight of label text"
36376
+ },
36377
+ {
36378
+ token: "metergroup.label.text.font.size",
36379
+ variable: "--p-metergroup-label-text-font-size",
36380
+ description: "Font size of label text"
36381
+ },
36006
36382
  {
36007
36383
  token: "metergroup.label.icon.size",
36008
36384
  variable: "--p-metergroup-label-icon-size",
@@ -36030,9 +36406,7 @@ export class MetergroupVerticalDemo {
36030
36406
  id: "accessibility",
36031
36407
  label: "Accessibility",
36032
36408
  description: "Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The multiselect component has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls attribute that refers to the id of the popup listbox. The popup listbox uses listbox as the role with aria-multiselectable enabled. Each list item has an option role along with aria-label , aria-selected and aria-disabled attributes. Checkbox component at the header uses a hidden native checkbox element internally that is only visible to screen readers. Value to read is defined with the selectAll and unselectAll keys of the aria property from the locale API. If filtering is enabled, filterInputProps can be defined to give aria-* props to the input element. Close button uses close key of the aria property from the locale API as the aria-label by default, this can be overriden with the closeButtonProps .",
36033
- examples: {
36034
- typescript: '<span id="dd1">Options</span>\n<p-multiselect ariaLabelledBy="dd1"/>\n\n<p-multiselect ariaLabel="Options"/>'
36035
- }
36409
+ examples: null
36036
36410
  },
36037
36411
  {
36038
36412
  id: "basic",
@@ -37924,6 +38298,16 @@ export class MultiselectVirtualscrollDemo {
37924
38298
  variable: "--p-multiselect-lg-padding-y",
37925
38299
  description: "Lg padding y of root"
37926
38300
  },
38301
+ {
38302
+ token: "multiselect.font.weight",
38303
+ variable: "--p-multiselect-font-weight",
38304
+ description: "Font weight of root"
38305
+ },
38306
+ {
38307
+ token: "multiselect.font.size",
38308
+ variable: "--p-multiselect-font-size",
38309
+ description: "Font size of root"
38310
+ },
37927
38311
  {
37928
38312
  token: "multiselect.dropdown.width",
37929
38313
  variable: "--p-multiselect-dropdown-width",
@@ -38009,6 +38393,11 @@ export class MultiselectVirtualscrollDemo {
38009
38393
  variable: "--p-multiselect-option-selected-focus-color",
38010
38394
  description: "Selected focus color of option"
38011
38395
  },
38396
+ {
38397
+ token: "multiselect.option.selected.font.weight",
38398
+ variable: "--p-multiselect-option-selected-font-weight",
38399
+ description: "Font weight of a selected option"
38400
+ },
38012
38401
  {
38013
38402
  token: "multiselect.option.padding",
38014
38403
  variable: "--p-multiselect-option-padding",
@@ -38024,6 +38413,16 @@ export class MultiselectVirtualscrollDemo {
38024
38413
  variable: "--p-multiselect-option-gap",
38025
38414
  description: "Gap of option"
38026
38415
  },
38416
+ {
38417
+ token: "multiselect.option.font.weight",
38418
+ variable: "--p-multiselect-option-font-weight",
38419
+ description: "Font weight of option"
38420
+ },
38421
+ {
38422
+ token: "multiselect.option.font.size",
38423
+ variable: "--p-multiselect-option-font-size",
38424
+ description: "Font size of option"
38425
+ },
38027
38426
  {
38028
38427
  token: "multiselect.option.group.background",
38029
38428
  variable: "--p-multiselect-option-group-background",
@@ -38039,6 +38438,11 @@ export class MultiselectVirtualscrollDemo {
38039
38438
  variable: "--p-multiselect-option-group-font-weight",
38040
38439
  description: "Font weight of option group"
38041
38440
  },
38441
+ {
38442
+ token: "multiselect.option.group.font.size",
38443
+ variable: "--p-multiselect-option-group-font-size",
38444
+ description: "Font size of option group"
38445
+ },
38042
38446
  {
38043
38447
  token: "multiselect.option.group.padding",
38044
38448
  variable: "--p-multiselect-option-group-padding",
@@ -38071,9 +38475,7 @@ export class MultiselectVirtualscrollDemo {
38071
38475
  id: "accessibility",
38072
38476
  label: "Accessibility",
38073
38477
  description: "Screen Reader Value to describe the source listbox and target listbox can be provided with sourceListProps and targetListProps by passing aria-labelledby or aria-label props. The list elements has a listbox role with the aria-multiselectable attribute. Each list item has an option role with aria-selected and aria-disabled as their attributes. Controls buttons are button elements with an aria-label that refers to the aria.moveTop , aria.moveUp , aria.moveDown , aria.moveBottom , aria.moveTo , aria.moveAllTo , aria.moveFrom and aria.moveAllFrom properties of the locale API by default, alternatively you may use moveTopButtonProps , moveUpButtonProps , moveDownButtonProps , moveToButtonProps , moveAllToButtonProps , moveFromButtonProps , moveFromButtonProps and moveAllFromButtonProps to customize the buttons like overriding the default aria-label attributes. OrderList Keyboard Support Key Function tab Moves focus to the first selected option, if there is none then first option receives the focus. up arrow Moves focus to the previous option. down arrow Moves focus to the next option. enter Toggles the selected state of the focused option. space Toggles the selected state of the focused option. home Moves focus to the first option. end Moves focus to the last option. shift + down arrow Moves focus to the next option and toggles the selection state. shift + up arrow Moves focus to the previous option and toggles the selection state. shift + space Selects the items between the most recently selected option and the focused option. control + shift + home Selects the focused options and all the options up to the first one. control + shift + end Selects the focused options and all the options down to the first one. control + a Selects all options. Buttons Keyboard Support Key Function enter Executes button action. space Executes button action.",
38074
- examples: {
38075
- typescript: '<span id="lb">Options</span>\n<p-orderlist ariaLabelledBy="lb" />\n\n<p-orderlist ariaLabel="City" />'
38076
- }
38478
+ examples: null
38077
38479
  },
38078
38480
  {
38079
38481
  id: "basic",
@@ -40343,6 +40745,16 @@ export class PaginatorTemplateDemo {
40343
40745
  variable: "--p-paginator-nav-button-border-radius",
40344
40746
  description: "Border radius of nav button"
40345
40747
  },
40748
+ {
40749
+ token: "paginator.nav.button.font.weight",
40750
+ variable: "--p-paginator-nav-button-font-weight",
40751
+ description: "Font weight of nav button"
40752
+ },
40753
+ {
40754
+ token: "paginator.nav.button.font.size",
40755
+ variable: "--p-paginator-nav-button-font-size",
40756
+ description: "Font size of nav button"
40757
+ },
40346
40758
  {
40347
40759
  token: "paginator.nav.button.focus.ring.width",
40348
40760
  variable: "--p-paginator-nav-button-focus-ring-width",
@@ -40373,6 +40785,16 @@ export class PaginatorTemplateDemo {
40373
40785
  variable: "--p-paginator-current-page-report-color",
40374
40786
  description: "Color of current page report"
40375
40787
  },
40788
+ {
40789
+ token: "paginator.current.page.report.font.weight",
40790
+ variable: "--p-paginator-current-page-report-font-weight",
40791
+ description: "Font weight of current page report"
40792
+ },
40793
+ {
40794
+ token: "paginator.current.page.report.font.size",
40795
+ variable: "--p-paginator-current-page-report-font-size",
40796
+ description: "Font size of current page report"
40797
+ },
40376
40798
  {
40377
40799
  token: "paginator.jump.to.page.input.max.width",
40378
40800
  variable: "--p-paginator-jump-to-page-input-max-width",
@@ -40618,9 +41040,9 @@ export class PanelToggleableDemo {}`
40618
41040
  description: "Defines template option for header."
40619
41041
  },
40620
41042
  {
40621
- name: "icon",
41043
+ name: "icons",
40622
41044
  type: "TemplateRef<void>",
40623
- description: "Defines template option for icon."
41045
+ description: "Defines template option for icons."
40624
41046
  },
40625
41047
  {
40626
41048
  name: "content",
@@ -40827,6 +41249,11 @@ export class PanelToggleableDemo {}`
40827
41249
  variable: "--p-panel-title-font-weight",
40828
41250
  description: "Font weight of title"
40829
41251
  },
41252
+ {
41253
+ token: "panel.title.font.size",
41254
+ variable: "--p-panel-title-font-size",
41255
+ description: "Font size of title"
41256
+ },
40830
41257
  {
40831
41258
  token: "panel.content.padding",
40832
41259
  variable: "--p-panel-content-padding",
@@ -41817,6 +42244,21 @@ export class PanelmenuTemplateDemo implements OnInit {
41817
42244
  variable: "--p-panelmenu-item-icon-focus-color",
41818
42245
  description: "Icon focus color of item"
41819
42246
  },
42247
+ {
42248
+ token: "panelmenu.item.icon.size",
42249
+ variable: "--p-panelmenu-item-icon-size",
42250
+ description: "Icon size of item"
42251
+ },
42252
+ {
42253
+ token: "panelmenu.item.label.font.weight",
42254
+ variable: "--p-panelmenu-item-label-font-weight",
42255
+ description: "Font weight of item label"
42256
+ },
42257
+ {
42258
+ token: "panelmenu.item.label.font.size",
42259
+ variable: "--p-panelmenu-item-label-font-size",
42260
+ description: "Font size of item label"
42261
+ },
41820
42262
  {
41821
42263
  token: "panelmenu.submenu.indent",
41822
42264
  variable: "--p-panelmenu-submenu-indent",
@@ -41844,9 +42286,7 @@ export class PanelmenuTemplateDemo implements OnInit {
41844
42286
  id: "accessibility",
41845
42287
  label: "Accessibility",
41846
42288
  description: "Screen Reader Value to describe the component can either be provided via label tag combined with id prop or using ariaLabelledBy , ariaLabel props. Screen reader is notified about the changes to the strength of the password using a section that has aria-live while typing.",
41847
- examples: {
41848
- typescript: '<label for="pwd1">Password</label>\n<p-password inputId="pwd1" />\n\n<span id="pwd2">Password</span>\n<p-password ariaLabelledBy="pwd2" />\n\n<p-password ariaLabel="Password" />'
41849
- }
42289
+ examples: null
41850
42290
  },
41851
42291
  {
41852
42292
  id: "basic",
@@ -42829,6 +43269,16 @@ export class PasswordTogglemaskDemo {
42829
43269
  variable: "--p-password-content-gap",
42830
43270
  description: "Gap of content"
42831
43271
  },
43272
+ {
43273
+ token: "password.meter.text.font.weight",
43274
+ variable: "--p-password-meter-text-font-weight",
43275
+ description: "Font weight of meter text"
43276
+ },
43277
+ {
43278
+ token: "password.meter.text.font.size",
43279
+ variable: "--p-password-meter-text-font-size",
43280
+ description: "Font size of meter text"
43281
+ },
42832
43282
  {
42833
43283
  token: "password.strength.weak.background",
42834
43284
  variable: "--p-password-strength-weak-background",
@@ -42856,9 +43306,7 @@ export class PasswordTogglemaskDemo {
42856
43306
  id: "accessibility",
42857
43307
  label: "Accessibility",
42858
43308
  description: "Screen Reader Value to describe the source listbox and target listbox can be provided with ariaLabelledBy or ariaLabel props. The list elements has a listbox role with the aria-multiselectable attribute. Each list item has an option role with aria-selected and aria-disabled as their attributes. Controls buttons are button elements with an aria-label that refers to the aria.moveTop , aria.moveUp , aria.moveDown , aria.moveBottom , aria.moveTo , aria.moveAllTo , aria.moveFrom and aria.moveAllFrom properties of the locale API by default, alternatively you may use moveTopButtonProps , moveUpButtonProps , moveDownButtonProps , moveToButtonProps , moveAllToButtonProps , moveFromButtonProps , moveFromButtonProps and moveAllFromButtonProps to customize the buttons like overriding the default aria-label attributes. PickList Keyboard Support Key Function tab Moves focus to the first selected option, if there is none then first option receives the focus. up arrow Moves focus to the previous option. down arrow Moves focus to the next option. enter Toggles the selected state of the focused option. space Toggles the selected state of the focused option. home Moves focus to the first option. end Moves focus to the last option. shift + down arrow Moves focus to the next option and toggles the selection state. shift + up arrow Moves focus to the previous option and toggles the selection state. shift + space Selects the items between the most recently selected option and the focused option. control + shift + home Selects the focused options and all the options up to the first one. control + shift + end Selects the focused options and all the options down to the first one. control + a Selects all options. Buttons Keyboard Support Key Function enter Executes button action. space Executes button action.",
42859
- examples: {
42860
- typescript: '<span id="lb">Options</span>\n<p-picklist ariaLabelledBy="lb" />\n\n<p-picklist ariaLabel="City" />'
42861
- }
43309
+ examples: null
42862
43310
  },
42863
43311
  {
42864
43312
  id: "basic",
@@ -44367,9 +44815,7 @@ export class PopoverTemplateDemo {}`
44367
44815
  id: "accessibility",
44368
44816
  label: "Accessibility",
44369
44817
  description: "Screen Reader ProgressBar components uses progressbar role along with aria-valuemin , aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using aria-labelledby and aria-label props.",
44370
- examples: {
44371
- typescript: '<span id="label_status">Status</span>\n<p-progressbar aria-labelledby="label_status" />\n\n<p-progressbar aria-label="Status" />'
44372
- }
44818
+ examples: null
44373
44819
  },
44374
44820
  {
44375
44821
  id: "basic",
@@ -44662,9 +45108,7 @@ export class ProgressbarTemplateDemo {}`
44662
45108
  id: "accessibility",
44663
45109
  label: "Accessibility",
44664
45110
  description: "Screen Reader ProgressSpinner components uses progressbar role. Value to describe the component can be defined using aria-labelledby and aria-label props.",
44665
- examples: {
44666
- typescript: '<p-progress-spinner aria-label="Loading"></p-progress-spinner>'
44667
- }
45111
+ examples: null
44668
45112
  },
44669
45113
  {
44670
45114
  id: "basic",
@@ -44832,9 +45276,7 @@ export class ProgressspinnerCustomDemo {}`
44832
45276
  id: "accessibility",
44833
45277
  label: "Accessibility",
44834
45278
  description: "Screen Reader RadioButton component uses a hidden native radio button element internally that is only visible to screen readers. Value to describe the component can either be provided via label tag combined with inputId prop or using ariaLabelledBy , ariaLabel props.",
44835
- examples: {
44836
- typescript: '<label for="rb1">One</label>\n<p-radiobutton inputId="rb1" />\n\n<span id="rb2">Two</span>\n<p-radiobutton ariaLabelledBy="rb2" />\n\n<p-radiobutton ariaLabel="Three" />'
44837
- }
45279
+ examples: null
44838
45280
  },
44839
45281
  {
44840
45282
  id: "disabled",
@@ -46186,303 +46628,43 @@ export class RippleDefaultDemo {}`
46186
46628
  id: "basic",
46187
46629
  label: "Basic",
46188
46630
  description: "VirtualScroller requires items as the data to display, itemSize for the dimensions of an item and item template are required on component. In addition, an initial array is required based on the total number of items to display. Size of the viewport is configured using scrollWidth , scrollHeight properties directly or with CSS width and height styles.",
46189
- examples: {
46190
- typescript: `import { Component, OnInit } from '@angular/core';
46191
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46192
-
46193
- @Component({
46194
- template: \`
46195
- <div class="card flex justify-center">
46196
- <p-virtualscroller [items]="items" [itemSize]="50" scrollHeight="200px" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46197
- <ng-template #item let-item let-options="options">
46198
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46199
- {{ item }}
46200
- </div>
46201
- </ng-template>
46202
- </p-virtualscroller>
46203
- </div>
46204
- \`,
46205
- standalone: true,
46206
- imports: [VirtualScrollerModule]
46207
- })
46208
- export class ScrollerBasicDemo implements OnInit {
46209
- items!: string[];
46210
-
46211
- ngOnInit() {
46212
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46213
- }
46214
- }`
46215
- }
46631
+ examples: null
46216
46632
  },
46217
46633
  {
46218
46634
  id: "delay",
46219
46635
  label: "Delay",
46220
46636
  description: "Scroll delay is adjusted by using delay property.",
46221
- examples: {
46222
- typescript: `import { Component, OnInit } from '@angular/core';
46223
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46224
-
46225
- @Component({
46226
- template: \`
46227
- <div class="card flex flex-wrap justify-center gap-4">
46228
- <div>
46229
- <span class="font-bold block mb-2">No Delay</span>
46230
- <p-virtualscroller [items]="items" [itemSize]="50" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46231
- <ng-template #item let-item let-options="options">
46232
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46233
- {{ item }}
46234
- </div>
46235
- </ng-template>
46236
- </p-virtualscroller>
46237
- </div>
46238
- <div>
46239
- <span class="font-bold block mb-2">150ms</span>
46240
- <p-virtualscroller [items]="items" [itemSize]="50" [delay]="150" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46241
- <ng-template #item let-item let-options="options">
46242
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46243
- {{ item }}
46244
- </div>
46245
- </ng-template>
46246
- </p-virtualscroller>
46247
- </div>
46248
- <div>
46249
- <span class="font-bold block mb-2">500ms</span>
46250
- <p-virtualscroller [items]="items" [itemSize]="50" [delay]="500" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46251
- <ng-template #item let-item let-options="options">
46252
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46253
- {{ item }}
46254
- </div>
46255
- </ng-template>
46256
- </p-virtualscroller>
46257
- </div>
46258
- </div>
46259
- \`,
46260
- standalone: true,
46261
- imports: [VirtualScrollerModule]
46262
- })
46263
- export class ScrollerDelayDemo implements OnInit {
46264
- items!: string[];
46265
-
46266
- ngOnInit() {
46267
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46268
- }
46269
- }`
46270
- }
46637
+ examples: null
46271
46638
  },
46272
46639
  {
46273
46640
  id: "grid",
46274
46641
  label: "Grid",
46275
46642
  description: "Scrolling can be enabled vertically and horizontally when orientation is set as both . In this mode, itemSize should be an array where first value is the height of an item and second is the width.",
46276
- examples: {
46277
- typescript: `import { Component, OnInit } from '@angular/core';
46278
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46279
-
46280
- @Component({
46281
- template: \`
46282
- <div class="card flex justify-center">
46283
- <p-virtualscroller [items]="items" [itemSize]="[50, 100]" orientation="both" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46284
- <ng-template #item let-item let-options="options">
46285
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46286
- <div *ngFor="let el of item" style="width: 100px">{{ el }}</div>
46287
- </div>
46288
- </ng-template>
46289
- </p-virtualscroller>
46290
- </div>
46291
- \`,
46292
- standalone: true,
46293
- imports: [VirtualScrollerModule]
46294
- })
46295
- export class ScrollerGridDemo implements OnInit {
46296
- items!: string[][];
46297
-
46298
- ngOnInit() {
46299
- this.items = Array.from({ length: 1000 }).map((_, i) => Array.from({ length: 1000 }).map((_j, j) => \`Item #\${i}_\${j}\`));
46300
- }
46301
- }`
46302
- }
46643
+ examples: null
46303
46644
  },
46304
46645
  {
46305
46646
  id: "horizontal",
46306
46647
  label: "Horizontal",
46307
46648
  description: "Setting orientation to horizontal enables scrolling horizontally. In this case, the itemSize should refer to the width of an item.",
46308
- examples: {
46309
- typescript: `import { Component, OnInit } from '@angular/core';
46310
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46311
-
46312
- @Component({
46313
- template: \`
46314
- <div class="card flex justify-center">
46315
- <p-virtualscroller [items]="items" [itemSize]="50" scrollHeight="200px" orientation="horizontal" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46316
- <ng-template #item let-item let-options="options">
46317
- <div class="flex items-center p-2" style="writing-mode: vertical-lr; width: 50px;" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46318
- {{ item }}
46319
- </div>
46320
- </ng-template>
46321
- </p-virtualscroller>
46322
- </div>
46323
- \`,
46324
- standalone: true,
46325
- imports: [VirtualScrollerModule]
46326
- })
46327
- export class ScrollerHorizontalDemo implements OnInit {
46328
- items!: string[];
46329
-
46330
- ngOnInit() {
46331
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46332
- }
46333
- }`
46334
- }
46649
+ examples: null
46335
46650
  },
46336
46651
  {
46337
46652
  id: "lazyload",
46338
46653
  label: "lazyload-doc",
46339
46654
  description: "Lazy mode is handy to deal with large datasets where instead of loading the entire data, small chunks of data are loaded on demand by invoking onLazyLoad callback everytime scrolling requires a new chunk. To implement lazy loading, enable lazy attribute, initialize your data as a placeholder with a length and finally implement a method callback using onLazyLoad that actually loads a chunk from a datasource. onLazyLoad gets an event object that contains information about the chunk of data to load such as the index and number of items to load. Notice that a new template called loadingItem is also required to display as a placeholder while the new items are being loaded.",
46340
- examples: {
46341
- typescript: `import { Component, OnInit } from '@angular/core';
46342
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46343
-
46344
- interface LazyEvent {
46345
- first: number;
46346
- last: number;
46347
- }
46348
-
46349
- @Component({
46350
- template: \`
46351
- <div class="card flex justify-center">
46352
- <p-virtualscroller [items]="items" [itemSize]="50" [showLoader]="true" [delay]="250" [loading]="lazyLoading" [lazy]="true" (onLazyLoad)="onLazyLoad($event)" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46353
- <ng-template #item let-item let-options="options">
46354
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46355
- {{ item }}
46356
- </div>
46357
- </ng-template>
46358
- </p-virtualscroller>
46359
- </div>
46360
- \`,
46361
- standalone: true,
46362
- imports: [VirtualScrollerModule]
46363
- })
46364
- export class ScrollerLazyloadDemo implements OnInit {
46365
- items!: string[];
46366
- lazyLoading: boolean = true;
46367
- loadLazyTimeout: any;
46368
-
46369
- ngOnInit() {
46370
- this.items = Array.from({ length: 1000 });
46371
- }
46372
-
46373
- onLazyLoad(event: LazyEvent) {
46374
- this.lazyLoading = true;
46375
-
46376
- if (this.loadLazyTimeout) {
46377
- clearTimeout(this.loadLazyTimeout);
46378
- }
46379
-
46380
- //imitate delay of a backend call
46381
- this.loadLazyTimeout = setTimeout(
46382
- () => {
46383
- const { first, last } = event;
46384
- const lazyItems = [...this.items];
46385
-
46386
- for (let i = first; i < last; i++) {
46387
- lazyItems[i] = \`Item #\${i}\`;
46388
- }
46389
-
46390
- this.items = lazyItems;
46391
- this.lazyLoading = false;
46392
- this.cd.markForCheck();
46393
- },
46394
- Math.random() * 1000 + 250
46395
- );
46396
- }
46397
- }`
46398
- }
46655
+ examples: null
46399
46656
  },
46400
46657
  {
46401
46658
  id: "loader",
46402
46659
  label: "loader-doc",
46403
46660
  description: "Busy state is enabled by adding showLoader property which blocks the UI with a modal by default. Alternatively, loader template can be used to customize items e.g. with Skeleton .",
46404
- examples: {
46405
- typescript: `import { Component, OnInit } from '@angular/core';
46406
- import { SkeletonModule } from 'primeng/skeleton';
46407
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46408
-
46409
- @Component({
46410
- template: \`
46411
- <div class="card flex flex-wrap justify-center gap-4">
46412
- <div>
46413
- <p-virtualscroller [items]="items" [itemSize]="50" [showLoader]="true" [delay]="250" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46414
- <ng-template #item let-item let-options="options">
46415
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46416
- {{ item }}
46417
- </div>
46418
- </ng-template>
46419
- </p-virtualscroller>
46420
- </div>
46421
- <div>
46422
- <p-virtualscroller [items]="items" [itemSize]="50" [showLoader]="true" [delay]="250" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46423
- <ng-template #item let-item let-options="options">
46424
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46425
- {{ item }}
46426
- </div>
46427
- </ng-template>
46428
- <ng-template pTemplate="loader" let-options="options">
46429
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46430
- <p-skeleton [width]="options.even ? '60%' : '50%'" height="1.3rem"></p-skeleton>
46431
- </div>
46432
- </ng-template>
46433
- </p-virtualscroller>
46434
- </div>
46435
- </div>
46436
- \`,
46437
- standalone: true,
46438
- imports: [SkeletonModule, VirtualScrollerModule]
46439
- })
46440
- export class ScrollerLoaderDemo implements OnInit {
46441
- items!: string[];
46442
-
46443
- ngOnInit() {
46444
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46445
- }
46446
- }`
46447
- }
46661
+ examples: null
46448
46662
  },
46449
46663
  {
46450
46664
  id: "programmatic",
46451
46665
  label: "Programmatic",
46452
46666
  description: "Scrolling to a specific index can be done with the scrollToIndex function.",
46453
- examples: {
46454
- typescript: `import { Component, OnInit } from '@angular/core';
46455
- import { ButtonModule } from 'primeng/button';
46456
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46457
-
46458
- @Component({
46459
- template: \`
46460
- <div class="card flex flex-col items-center gap-4">
46461
- <p-button label="Reset" (click)="reset()" />
46462
- <p-virtualscroller #sc [items]="items" [itemSize]="50" scrollHeight="200px" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46463
- <ng-template #item let-item let-options="options">
46464
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46465
- {{ item }}
46466
- </div>
46467
- </ng-template>
46468
- </p-virtualscroller>
46469
- </div>
46470
- \`,
46471
- standalone: true,
46472
- imports: [ButtonModule, VirtualScrollerModule]
46473
- })
46474
- export class ScrollerProgrammaticDemo implements OnInit {
46475
- items: string[] = [];
46476
-
46477
- ngOnInit() {
46478
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46479
- }
46480
-
46481
- reset() {
46482
- this.sc.scrollToIndex(0, 'smooth');
46483
- }
46484
- }`
46485
- }
46667
+ examples: null
46486
46668
  },
46487
46669
  {
46488
46670
  id: "scrolloptions",
@@ -46494,51 +46676,7 @@ export class ScrollerProgrammaticDemo implements OnInit {
46494
46676
  id: "template",
46495
46677
  label: "Template",
46496
46678
  description: "Scroller content is customizable by using ng-template . Valid values are content , item , loader and loadericon",
46497
- examples: {
46498
- typescript: `import { Component, OnInit } from '@angular/core';
46499
- import { SkeletonModule } from 'primeng/skeleton';
46500
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46501
-
46502
- @Component({
46503
- template: \`
46504
- <div class="card flex justify-center">
46505
- <p-virtualscroller [items]="items" [itemSize]="25 * 7" [showLoader]="true" [delay]="250" [numToleratedItems]="20" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46506
- <ng-template #item let-item let-options="options">
46507
- <div class="flex flex-col align-items-strech" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46508
- <div class="flex items-center px-2" style="height: 25px">Item: {{ item }}</div>
46509
- <div class="flex items-center px-2" style="height: 25px">Index: {{ options.index }}</div>
46510
- <div class="flex items-center px-2" style="height: 25px">Count: {{ options.count }}</div>
46511
- <div class="flex items-center px-2" style="height: 25px">First: {{ options.first }}</div>
46512
- <div class="flex items-center px-2" style="height: 25px">Last: {{ options.last }}</div>
46513
- <div class="flex items-center px-2" style="height: 25px">Even: {{ options.even }}</div>
46514
- <div class="flex items-center px-2" style="height: 25px">Odd: {{ options.odd }}</div>
46515
- </div>
46516
- </ng-template>
46517
- <ng-template #loader let-options="options">
46518
- <div class="flex flex-col items-stretch" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46519
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46520
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46521
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46522
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46523
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46524
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46525
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46526
- </div>
46527
- </ng-template>
46528
- </p-virtualscroller>
46529
- </div>
46530
- \`,
46531
- standalone: true,
46532
- imports: [SkeletonModule, VirtualScrollerModule]
46533
- })
46534
- export class ScrollerTemplateDemo implements OnInit {
46535
- items!: string[];
46536
-
46537
- ngOnInit() {
46538
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46539
- }
46540
- }`
46541
- }
46679
+ examples: null
46542
46680
  }
46543
46681
  ],
46544
46682
  api: {
@@ -47344,9 +47482,7 @@ export class ScrolltopElementDemo {}`
47344
47482
  id: "accessibility",
47345
47483
  label: "Accessibility",
47346
47484
  description: "Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The select element has a combobox role in addition to aria-haspopup and aria-expanded attributes. If the editable option is enabled aria-autocomplete is also added. The relation between the combobox and the popup is created with aria-controls and aria-activedescendant attribute is used to instruct screen reader which option to read during keyboard navigation within the popup list. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses listbox as the role. Each list item has an option role, an id to match the aria-activedescendant of the input element along with aria-label , aria-selected and aria-disabled attributes. If filtering is enabled, filterInputProps can be defined to give aria-* props to the filter input element.",
47347
- examples: {
47348
- typescript: '<span id="dd1">Options</span>\n<p-select ariaLabelledBy="dd1"/>\n\n<p-select ariaLabel="Options"/>'
47349
- }
47485
+ examples: null
47350
47486
  },
47351
47487
  {
47352
47488
  id: "basic",
@@ -49383,6 +49519,16 @@ export class SelectVirtualscrollDemo {
49383
49519
  variable: "--p-select-lg-padding-y",
49384
49520
  description: "Lg padding y of root"
49385
49521
  },
49522
+ {
49523
+ token: "select.font.weight",
49524
+ variable: "--p-select-font-weight",
49525
+ description: "Font weight of root"
49526
+ },
49527
+ {
49528
+ token: "select.font.size",
49529
+ variable: "--p-select-font-size",
49530
+ description: "Font size of root"
49531
+ },
49386
49532
  {
49387
49533
  token: "select.dropdown.width",
49388
49534
  variable: "--p-select-dropdown-width",
@@ -49468,6 +49614,11 @@ export class SelectVirtualscrollDemo {
49468
49614
  variable: "--p-select-option-selected-focus-color",
49469
49615
  description: "Selected focus color of option"
49470
49616
  },
49617
+ {
49618
+ token: "select.option.selected.font.weight",
49619
+ variable: "--p-select-option-selected-font-weight",
49620
+ description: "Font weight of a selected option"
49621
+ },
49471
49622
  {
49472
49623
  token: "select.option.padding",
49473
49624
  variable: "--p-select-option-padding",
@@ -49478,6 +49629,16 @@ export class SelectVirtualscrollDemo {
49478
49629
  variable: "--p-select-option-border-radius",
49479
49630
  description: "Border radius of option"
49480
49631
  },
49632
+ {
49633
+ token: "select.option.font.weight",
49634
+ variable: "--p-select-option-font-weight",
49635
+ description: "Font weight of option"
49636
+ },
49637
+ {
49638
+ token: "select.option.font.size",
49639
+ variable: "--p-select-option-font-size",
49640
+ description: "Font size of option"
49641
+ },
49481
49642
  {
49482
49643
  token: "select.option.group.background",
49483
49644
  variable: "--p-select-option-group-background",
@@ -49493,6 +49654,11 @@ export class SelectVirtualscrollDemo {
49493
49654
  variable: "--p-select-option-group-font-weight",
49494
49655
  description: "Font weight of option group"
49495
49656
  },
49657
+ {
49658
+ token: "select.option.group.font.size",
49659
+ variable: "--p-select-option-group-font-size",
49660
+ description: "Font size of option group"
49661
+ },
49496
49662
  {
49497
49663
  token: "select.option.group.padding",
49498
49664
  variable: "--p-select-option-group-padding",
@@ -50371,9 +50537,7 @@ export class SkeletonShapesDemo {}`
50371
50537
  id: "accessibility",
50372
50538
  label: "Accessibility",
50373
50539
  description: "Screen Reader Slider element component uses slider role on the handle in addition to the aria-orientation , aria-valuemin , aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using ariaLabelledBy and ariaLabel props.",
50374
- examples: {
50375
- typescript: '<span id="label_number">Number</span>\n<p-slider ariaLabelledBy="label_number" />\n\n<p-slider ariaLabel="Number" />'
50376
- }
50540
+ examples: null
50377
50541
  },
50378
50542
  {
50379
50543
  id: "basic",
@@ -50946,9 +51110,7 @@ export class SliderVerticalDemo {
50946
51110
  id: "accessibility",
50947
51111
  label: "Accessibility",
50948
51112
  description: "Screen Reader SpeedDial component renders a native button element that implicitly includes any passed prop. Text to describe the button can be defined with the aria-labelledby or aria-label props. Addititonally the button includes includes aria-haspopup , aria-expanded for states along with aria-controls to define the relation between the popup and the button. The popup overlay uses menu role on the list and each action item has a menuitem role with an aria-label as the menuitem label. The id of the menu refers to the aria-controls of the button.",
50949
- examples: {
50950
- typescript: '<p-speeddial aria-label="Options" />'
50951
- }
51113
+ examples: null
50952
51114
  },
50953
51115
  {
50954
51116
  id: "circle",
@@ -51791,9 +51953,7 @@ export class SpeeddialTooltipDemo implements OnInit {
51791
51953
  id: "accessibility",
51792
51954
  label: "Accessibility",
51793
51955
  description: "Screen Reader SplitButton component renders two native button elements, main button uses the label property to define aria-label by default which can be customized with buttonProps . Dropdown button requires an explicit definition to describe it using menuButtonProps option and also includes aria-haspopup , aria-expanded for states along with aria-controls to define the relation between the popup and the button. The popup overlay uses menu role on the list and each action item has a menuitem role with an aria-label as the menuitem label. The id of the menu refers to the aria-controls of the dropdown button.",
51794
- examples: {
51795
- typescript: `<p-splitbutton [buttonProps]="{'aria-label': 'Default Action'}" [menuButtonProps]="{'aria-label': 'More Options'}" />`
51796
- }
51956
+ examples: null
51797
51957
  },
51798
51958
  {
51799
51959
  id: "basic",
@@ -53877,6 +54037,11 @@ export class StepperVerticalDemo {}`
53877
54037
  variable: "--p-stepper-step-title-font-weight",
53878
54038
  description: "Font weight of step title"
53879
54039
  },
54040
+ {
54041
+ token: "stepper.step.title.font.size",
54042
+ variable: "--p-stepper-step-title-font-size",
54043
+ description: "Font size of step title"
54044
+ },
53880
54045
  {
53881
54046
  token: "stepper.step.number.background",
53882
54047
  variable: "--p-stepper-step-number-background",
@@ -60184,6 +60349,11 @@ export class TabsTabmenuDemo {
60184
60349
  variable: "--p-tabs-tab-font-weight",
60185
60350
  description: "Font weight of tab"
60186
60351
  },
60352
+ {
60353
+ token: "tabs.tab.font.size",
60354
+ variable: "--p-tabs-tab-font-size",
60355
+ description: "Font size of tab"
60356
+ },
60187
60357
  {
60188
60358
  token: "tabs.tab.margin",
60189
60359
  variable: "--p-tabs-tab-margin",
@@ -60922,6 +61092,16 @@ export class TerminalBasicDemo {
60922
61092
  variable: "--p-terminal-border-radius",
60923
61093
  description: "Border radius of root"
60924
61094
  },
61095
+ {
61096
+ token: "terminal.font.weight",
61097
+ variable: "--p-terminal-font-weight",
61098
+ description: "Font weight of root"
61099
+ },
61100
+ {
61101
+ token: "terminal.font.size",
61102
+ variable: "--p-terminal-font-size",
61103
+ description: "Font size of root"
61104
+ },
60925
61105
  {
60926
61106
  token: "terminal.prompt.gap",
60927
61107
  variable: "--p-terminal-prompt-gap",
@@ -60944,9 +61124,7 @@ export class TerminalBasicDemo {
60944
61124
  id: "accessibility",
60945
61125
  label: "Accessibility",
60946
61126
  description: "Screen Reader Textarea component renders a native textarea element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby , aria-label props.",
60947
- examples: {
60948
- typescript: '<label for="address1">Address 1</label>\n<textarea pTextarea id="address1"></textarea>\n\n<span id="address2">Address 2</span>\n<textarea pTextarea aria-labelledby="address2"></textarea>\n\n<textarea pTextarea aria-label="Address Details"></textarea>'
60949
- }
61127
+ examples: null
60950
61128
  },
60951
61129
  {
60952
61130
  id: "autoresize",
@@ -61508,6 +61686,16 @@ export class TextareaTemplatedrivenformsDemo {
61508
61686
  token: "textarea.lg.padding.y",
61509
61687
  variable: "--p-textarea-lg-padding-y",
61510
61688
  description: "Lg padding y of root"
61689
+ },
61690
+ {
61691
+ token: "textarea.font.weight",
61692
+ variable: "--p-textarea-font-weight",
61693
+ description: "Font weight of root"
61694
+ },
61695
+ {
61696
+ token: "textarea.font.size",
61697
+ variable: "--p-textarea-font-size",
61698
+ description: "Font size of root"
61511
61699
  }
61512
61700
  ]
61513
61701
  }
@@ -62414,6 +62602,21 @@ export class TieredmenuTemplateDemo implements OnInit {
62414
62602
  variable: "--p-tieredmenu-item-icon-active-color",
62415
62603
  description: "Icon active color of item"
62416
62604
  },
62605
+ {
62606
+ token: "tieredmenu.item.icon.size",
62607
+ variable: "--p-tieredmenu-item-icon-size",
62608
+ description: "Icon size of item"
62609
+ },
62610
+ {
62611
+ token: "tieredmenu.item.label.font.weight",
62612
+ variable: "--p-tieredmenu-item-label-font-weight",
62613
+ description: "Font weight of item label"
62614
+ },
62615
+ {
62616
+ token: "tieredmenu.item.label.font.size",
62617
+ variable: "--p-tieredmenu-item-label-font-size",
62618
+ description: "Font size of item label"
62619
+ },
62417
62620
  {
62418
62621
  token: "tieredmenu.submenu.mobile.indent",
62419
62622
  variable: "--p-tieredmenu-submenu-mobile-indent",
@@ -63977,9 +64180,7 @@ export class ToastTemplateDemo {
63977
64180
  id: "accessibility",
63978
64181
  label: "Accessibility",
63979
64182
  description: "Screen Reader ToggleButton component uses an element with button role and updates aria-pressed state for screen readers. Value to describe the component can be defined with ariaLabelledBy or ariaLabel props, it is highly suggested to use either of these props as the component changes the label displayed which will result in screen readers to read different labels when the component receives focus. To prevent this, always provide an aria label that does not change related to state.",
63980
- examples: {
63981
- typescript: '<span id="rememberme">Remember Me</span>\n<p-togglebutton ariaLabelledBy="rememberme" />\n\n<p-togglebutton ariaLabel="Remember Me" />'
63982
- }
64183
+ examples: null
63983
64184
  },
63984
64185
  {
63985
64186
  id: "basic",
@@ -64470,6 +64671,11 @@ export class TogglebuttonTemplatedrivenformsDemo {
64470
64671
  variable: "--p-togglebutton-gap",
64471
64672
  description: "Gap of root"
64472
64673
  },
64674
+ {
64675
+ token: "togglebutton.font.size",
64676
+ variable: "--p-togglebutton-font-size",
64677
+ description: "Font size of root"
64678
+ },
64473
64679
  {
64474
64680
  token: "togglebutton.font.weight",
64475
64681
  variable: "--p-togglebutton-font-weight",
@@ -64647,9 +64853,7 @@ export class TogglebuttonTemplatedrivenformsDemo {
64647
64853
  id: "accessibility",
64648
64854
  label: "Accessibility",
64649
64855
  description: "Screen Reader InputSwitch component uses a hidden native checkbox element with switch role internally that is only visible to screen readers. Value to describe the component can either be provided via label tag combined with inputId prop or using ariaLabelledBy , ariaLabel props.",
64650
- examples: {
64651
- typescript: '<label for="switch1">Remember Me</label>\n<p-toggleswitch inputId="switch1" />\n\n<span id="switch2">Remember Me</span>\n<p-toggleswitch ariaLabelledBy="switch2" />\n\n<p-toggleswitch ariaLabel="Remember Me" />'
64652
- }
64856
+ examples: null
64653
64857
  },
64654
64858
  {
64655
64859
  id: "basic",
@@ -65241,9 +65445,7 @@ export class ToggleswitchTemplatedrivenformsDemo {
65241
65445
  id: "accessibility",
65242
65446
  label: "Accessibility",
65243
65447
  description: "Screen Reader Toolbar uses toolbar role for the root element, aria-orientation is not included as it defaults to horizontal . Any valid attribute is passed to the root element so you may add additional properties like aria-labelledby and aria-labelled to define the element if required. Keyboard Support Component does not include any interactive elements. Arbitrary content can be placed with templating and elements like buttons inside should follow the page tab sequence.",
65244
- examples: {
65245
- typescript: '<p-toolbar aria-label="Actions">\n Content\n</p-toolbar>'
65246
- }
65448
+ examples: null
65247
65449
  },
65248
65450
  {
65249
65451
  id: "basic",
@@ -65937,6 +66139,16 @@ export class TooltipPositionDemo {}`
65937
66139
  token: "tooltip.color",
65938
66140
  variable: "--p-tooltip-color",
65939
66141
  description: "Color of root"
66142
+ },
66143
+ {
66144
+ token: "tooltip.font.weight",
66145
+ variable: "--p-tooltip-font-weight",
66146
+ description: "Font weight of root"
66147
+ },
66148
+ {
66149
+ token: "tooltip.font.size",
66150
+ variable: "--p-tooltip-font-size",
66151
+ description: "Font size of root"
65940
66152
  }
65941
66153
  ]
65942
66154
  }
@@ -67295,6 +67507,21 @@ export class TreeVirtualscrolllazyDemo implements OnInit {
67295
67507
  variable: "--p-tree-node-icon-selected-color",
67296
67508
  description: "Selected color of node icon"
67297
67509
  },
67510
+ {
67511
+ token: "tree.node.label.font.weight",
67512
+ variable: "--p-tree-node-label-font-weight",
67513
+ description: "Font weight of node label"
67514
+ },
67515
+ {
67516
+ token: "tree.node.label.font.size",
67517
+ variable: "--p-tree-node-label-font-size",
67518
+ description: "Font size of node label"
67519
+ },
67520
+ {
67521
+ token: "tree.node.label.selected.font.weight",
67522
+ variable: "--p-tree-node-label-selected-font-weight",
67523
+ description: "Font weight of a selected node label"
67524
+ },
67298
67525
  {
67299
67526
  token: "tree.node.toggle.button.border.radius",
67300
67527
  variable: "--p-tree-node-toggle-button-border-radius",
@@ -67377,9 +67604,7 @@ export class TreeVirtualscrolllazyDemo implements OnInit {
67377
67604
  id: "accessibility",
67378
67605
  label: "Accessibility",
67379
67606
  description: "Screen Reader Value to describe the component can either be provided with ariaLabelledby or ariaLabel props. The treeselect element has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls that refers to the id of the popup. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses tree as the role. Each list item has a treeitem role along with aria-label , aria-selected and aria-expanded attributes. In checkbox selection, aria-checked is used instead of aria-selected . Checkbox and toggle icons are hidden from screen readers as their parent element with treeitem role and attributes are used instead for readers and keyboard support. The container element of a treenode has the group role. The aria-setsize , aria-posinset and aria-level attributes are calculated implicitly and added to each treeitem. If filtering is enabled, filterInputProps can be defined to give aria-* props to the filter input element.",
67380
- examples: {
67381
- typescript: '<span id="dd1">Options</span>\n<p-treeselect ariaLabelledBy="dd1" />\n\n<p-treeselect ariaLabel="Options" />'
67382
- }
67607
+ examples: null
67383
67608
  },
67384
67609
  {
67385
67610
  id: "basic",
@@ -68900,6 +69125,16 @@ export class TreeselectVirtualscrollDemo implements OnInit {
68900
69125
  variable: "--p-treeselect-lg-padding-y",
68901
69126
  description: "Lg padding y of root"
68902
69127
  },
69128
+ {
69129
+ token: "treeselect.font.weight",
69130
+ variable: "--p-treeselect-font-weight",
69131
+ description: "Font weight of root"
69132
+ },
69133
+ {
69134
+ token: "treeselect.font.size",
69135
+ variable: "--p-treeselect-font-size",
69136
+ description: "Font size of root"
69137
+ },
68903
69138
  {
68904
69139
  token: "treeselect.dropdown.width",
68905
69140
  variable: "--p-treeselect-dropdown-width",
@@ -72652,6 +72887,11 @@ export class TreetableTemplateDemo implements OnInit {
72652
72887
  variable: "--p-treetable-column-title-font-weight",
72653
72888
  description: "Font weight of column title"
72654
72889
  },
72890
+ {
72891
+ token: "treetable.column.title.font.size",
72892
+ variable: "--p-treetable-column-title-font-size",
72893
+ description: "Font size of column title"
72894
+ },
72655
72895
  {
72656
72896
  token: "treetable.row.background",
72657
72897
  variable: "--p-treetable-row-background",
@@ -72727,6 +72967,16 @@ export class TreetableTemplateDemo implements OnInit {
72727
72967
  variable: "--p-treetable-body-cell-selected-border-color",
72728
72968
  description: "Selected border color of body cell"
72729
72969
  },
72970
+ {
72971
+ token: "treetable.body.cell.font.weight",
72972
+ variable: "--p-treetable-body-cell-font-weight",
72973
+ description: "Font weight of body cell"
72974
+ },
72975
+ {
72976
+ token: "treetable.body.cell.font.size",
72977
+ variable: "--p-treetable-body-cell-font-size",
72978
+ description: "Font size of body cell"
72979
+ },
72730
72980
  {
72731
72981
  token: "treetable.footer.cell.background",
72732
72982
  variable: "--p-treetable-footer-cell-background",
@@ -72752,6 +73002,11 @@ export class TreetableTemplateDemo implements OnInit {
72752
73002
  variable: "--p-treetable-column-footer-font-weight",
72753
73003
  description: "Font weight of column footer"
72754
73004
  },
73005
+ {
73006
+ token: "treetable.column.footer.font.size",
73007
+ variable: "--p-treetable-column-footer-font-size",
73008
+ description: "Font size of column footer"
73009
+ },
72755
73010
  {
72756
73011
  token: "treetable.footer.background",
72757
73012
  variable: "--p-treetable-footer-background",
@@ -73251,18 +73506,7 @@ export class TreetableTemplateDemo implements OnInit {
73251
73506
  id: "example-",
73252
73507
  label: "Example-",
73253
73508
  description: "Unstyled components require styling using your preferred approach. We recommend using Tailwind CSS with PassThrough attributes, a combination that works seamlessly together. The tailwindcss-primeui even provides special variants such as p-outlined: , p-vertical for the PrimeNG components. The example below demonstrates how to style a button component with Tailwind CSS using PassThrough attributes. Before you begin, refer to the pass through section in the button documentation to familiarize yourself with the component's internal structure and PassThrough attributes. In this example, we'll target the root , label and icon elements to apply custom styles.",
73254
- examples: {
73255
- typescript: `<p-button
73256
- label="Search"
73257
- icon="pi pi-search"
73258
- [unstyled]="true"
73259
- [pt]="{
73260
- root: 'bg-teal-500 hover:bg-teal-700 active:bg-teal-900 cursor-pointer py-2 px-4 rounded-full border-0 flex gap-2',
73261
- label: 'text-white font-bold text-lg',
73262
- icon: 'text-white !text-xl'
73263
- }"
73264
- />`
73265
- }
73509
+ examples: null
73266
73510
  },
73267
73511
  {
73268
73512
  id: "global-",
@@ -73296,17 +73540,13 @@ export class TreetableTemplateDemo implements OnInit {
73296
73540
  id: "basic-",
73297
73541
  label: "Basic-",
73298
73542
  description: "PrimeIcons use the pi pi-&#123;icon&#125; syntax such as pi pi-check . A standalone icon can be displayed using an element such as i or span",
73299
- examples: {
73300
- typescript: '<i class="pi pi-check"></i>\n<i class="pi pi-times"></i>\n<span class="pi pi-search"></span>\n<span class="pi pi-user"></span>'
73301
- }
73543
+ examples: null
73302
73544
  },
73303
73545
  {
73304
73546
  id: "color-",
73305
73547
  label: "Color-",
73306
73548
  description: "Icon color is defined with the color property which is inherited from parent by default.",
73307
- examples: {
73308
- typescript: '<i class="pi pi-check" style="color: slateblue"></i>\n<i class="pi pi-times" style="color: green"></i>\n<i class="pi pi-search" style="color: var(--primary-color)"></i>\n<i class="pi pi-user" style="color: #708090"></i>'
73309
- }
73549
+ examples: null
73310
73550
  },
73311
73551
  {
73312
73552
  id: "constants-",
@@ -73348,17 +73588,13 @@ export class TreetableTemplateDemo implements OnInit {
73348
73588
  id: "size-",
73349
73589
  label: "Size-",
73350
73590
  description: "Size of an icon is controlled with the font-size property of the element.",
73351
- examples: {
73352
- typescript: '<i class="pi pi-check" style="font-size: 1rem"></i>\n<i class="pi pi-times" style="font-size: 1.5rem"></i>\n<i class="pi pi-search" style="font-size: 2rem"></i>\n<i class="pi pi-user" style="font-size: 2.5rem"></i>'
73353
- }
73591
+ examples: null
73354
73592
  },
73355
73593
  {
73356
73594
  id: "spin-",
73357
73595
  label: "Spin-",
73358
73596
  description: "Special pi-spin class applies infinite rotation to an icon.",
73359
- examples: {
73360
- typescript: '<i class="pi pi-spin pi-spinner" style="font-size: 2rem"></i>\n<i class="pi pi-spin pi-cog" style="font-size: 2rem"></i>'
73361
- }
73597
+ examples: null
73362
73598
  }
73363
73599
  ]
73364
73600
  },
@@ -73372,33 +73608,25 @@ export class TreetableTemplateDemo implements OnInit {
73372
73608
  id: "fontawesome-",
73373
73609
  label: "Fontawesome-",
73374
73610
  description: "Font Awesome is a popular icon library with a wide range of icons.",
73375
- examples: {
73376
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <i class="fa-light fa-chevron-down"></i>\n </ng-template>\n</p-dropdown>'
73377
- }
73611
+ examples: null
73378
73612
  },
73379
73613
  {
73380
73614
  id: "image-",
73381
73615
  label: "Image-",
73382
73616
  description: "Any type of image can be used as an icon.",
73383
- examples: {
73384
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <img alt="dropdown icon" src="/assets/icons/arrow_down.png">\n </ng-template>\n</p-dropdown>'
73385
- }
73617
+ examples: null
73386
73618
  },
73387
73619
  {
73388
73620
  id: "material-",
73389
73621
  label: "Material-",
73390
73622
  description: "Material icons is the official icon library based on Google Material Design.",
73391
- examples: {
73392
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <span class="material-icons">arrow_drop_down</span>\n </ng-template>\n</p-dropdown>'
73393
- }
73623
+ examples: null
73394
73624
  },
73395
73625
  {
73396
73626
  id: "svg-",
73397
73627
  label: "Svg-",
73398
73628
  description: "Inline SVGs are embedded inside the dom.",
73399
- examples: {
73400
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\n <g id="chevron-down">\n <path d="M12,15.25a.74.74,0,0,1-.53-.22l-5-5A.75.75,0,0,1,7.53,9L12,13.44,16.47,9A.75.75,0,0,1,17.53,10l-5,5A.74.74,0,0,1,12,15.25Z"/>\n </g>\n </svg>\n </ng-template>\n</p-dropdown>'
73401
- }
73629
+ examples: null
73402
73630
  }
73403
73631
  ]
73404
73632
  },
@@ -73462,9 +73690,7 @@ export class TreetableTemplateDemo implements OnInit {
73462
73690
  id: "animations-",
73463
73691
  label: "Animations-",
73464
73692
  description: "The plugin also adds extended animation utilities that can be used with the styleclass and animateonscroll directives.",
73465
- examples: {
73466
- typescript: '<p-select [(ngModel)]="animation" [options]="animations" placeholder="Select One" class="w-full sm:w-44" />\n<div class="py-8 overflow-hidden">\n <div [ngClass]="dynamicAnimationClasses"></div>\n</div>'
73467
- }
73693
+ examples: null
73468
73694
  },
73469
73695
  {
73470
73696
  id: "colorpalette-",
@@ -73839,7 +74065,7 @@ export class TreetableTemplateDemo implements OnInit {
73839
74065
  // package.json
73840
74066
  var package_default = {
73841
74067
  name: "@primeng/mcp",
73842
- version: "21.1.1",
74068
+ version: "21.1.3",
73843
74069
  author: "PrimeTek Informatics",
73844
74070
  description: "Model Context Protocol (MCP) server for PrimeNg component library",
73845
74071
  homepage: "https://primeng.org/",