@primeng/mcp 21.1.2 → 21.1.4

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 +48 -454
  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-03-03",
9
+ generatedAt: "2026-03-04",
10
10
  components: [
11
11
  {
12
12
  name: "accordion",
@@ -908,9 +908,7 @@ export class AnimateonscrollBasicDemo {}`
908
908
  id: "accessibility",
909
909
  label: "Accessibility",
910
910
  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
- }
911
+ examples: null
914
912
  },
915
913
  {
916
914
  id: "advanced-chips",
@@ -4651,9 +4649,7 @@ export class BreadcrumbTemplateDemo implements OnInit {
4651
4649
  id: "accessibility",
4652
4650
  label: "Accessibility",
4653
4651
  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
- }
4652
+ examples: null
4657
4653
  },
4658
4654
  {
4659
4655
  id: "badge",
@@ -7404,9 +7400,7 @@ export class CarouselVerticalDemo implements OnInit {
7404
7400
  id: "accessibility",
7405
7401
  label: "Accessibility",
7406
7402
  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
- }
7403
+ examples: null
7410
7404
  },
7411
7405
  {
7412
7406
  id: "basic",
@@ -15492,9 +15486,7 @@ export class DataviewSortingDemo implements OnInit {
15492
15486
  id: "accessibility",
15493
15487
  label: "Accessibility",
15494
15488
  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
- }
15489
+ examples: null
15498
15490
  },
15499
15491
  {
15500
15492
  id: "basic",
@@ -17847,13 +17839,7 @@ export class DatepickerYearDemo {
17847
17839
  id: "accessibility",
17848
17840
  label: "Accessibility",
17849
17841
  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.",
17850
- examples: {
17851
- typescript: `<p-button icon="pi pi-external-link" (click)="visible = true" aria-controls="{{visible ? 'dialog' : null}}" aria-expanded="{{visible ? true : false}}" />
17852
-
17853
- <p-dialog id="dialog" header="Header" [(visible)]="visible" [style]="{ width: '50vw' }" (onHide)="visible = false">
17854
- <p>Content</p>
17855
- </p-dialog>`
17856
- }
17842
+ examples: null
17857
17843
  },
17858
17844
  {
17859
17845
  id: "basic",
@@ -20287,22 +20273,7 @@ export class DragdropDropindicatorDemo implements OnInit {
20287
20273
  id: "accessibility",
20288
20274
  label: "Accessibility",
20289
20275
  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.",
20290
- examples: {
20291
- typescript: `<p-button
20292
- icon="pi pi-arrow-right"
20293
- (click)="visible = true"
20294
- aria-controls="{{visible ? 'drawer' : null}}"
20295
- aria-expanded="{{visible ? true : false}}"
20296
- ></p-button>
20297
- <p-drawer
20298
- [(visible)]="visible"
20299
- id="drawer"
20300
- (onHide)="visible = false"
20301
- role="region"
20302
- >
20303
- content
20304
- </p-drawer>`
20305
- }
20276
+ examples: null
20306
20277
  },
20307
20278
  {
20308
20279
  id: "basic",
@@ -25524,9 +25495,7 @@ export class IftalabelInvalidDemo {
25524
25495
  id: "accessibility",
25525
25496
  label: "Accessibility",
25526
25497
  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.",
25527
- examples: {
25528
- 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>'
25529
- }
25498
+ examples: null
25530
25499
  },
25531
25500
  {
25532
25501
  id: "basic",
@@ -26519,9 +26488,7 @@ export class InputgroupMultipleDemo {}`
26519
26488
  id: "accessibility",
26520
26489
  label: "Accessibility",
26521
26490
  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.",
26522
- examples: {
26523
- typescript: '<label for="date">Date</label>\n<input pInputText id="date" pInputMask="99/99/9999" />\n\n<span id="phone">Phone</span>\n<input pInputText pInputMask="(999) 999-9999" aria-labelledby="phone" />\n\n<input pInputText pInputMask="99" aria-label="Age" />'
26524
- }
26491
+ examples: null
26525
26492
  },
26526
26493
  {
26527
26494
  id: "basic",
@@ -27337,9 +27304,7 @@ export class InputmaskTemplatedrivenformsDemo {
27337
27304
  id: "accessibility",
27338
27305
  label: "Accessibility",
27339
27306
  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.",
27340
- examples: {
27341
- 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>'
27342
- }
27307
+ examples: null
27343
27308
  },
27344
27309
  {
27345
27310
  id: "buttons",
@@ -28959,9 +28924,7 @@ export class InputotpTemplatedrivenformsDemo {
28959
28924
  id: "accessibility",
28960
28925
  label: "Accessibility",
28961
28926
  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.",
28962
- examples: {
28963
- 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" />'
28964
- }
28927
+ examples: null
28965
28928
  },
28966
28929
  {
28967
28930
  id: "basic",
@@ -29759,9 +29722,7 @@ export class KeyfilterRegexDemo {
29759
29722
  id: "accessibility",
29760
29723
  label: "Accessibility",
29761
29724
  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.",
29762
- examples: {
29763
- typescript: '<span id="label_number">Number</span>\n<p-knob ariaLabelledBy="label_number"/>\n\n<p-knob ariaLabel="Number"/>'
29764
- }
29725
+ examples: null
29765
29726
  },
29766
29727
  {
29767
29728
  id: "basic",
@@ -30429,9 +30390,7 @@ export class KnobTemplatedrivenformsDemo {
30429
30390
  id: "accessibility",
30430
30391
  label: "Accessibility",
30431
30392
  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.",
30432
- examples: {
30433
- typescript: '<span id="lb">Options</span>\n<p-listbox ariaLabelledBy="lb"/>\n\n<p-listbox ariaLabel="City"/>'
30434
- }
30393
+ examples: null
30435
30394
  },
30436
30395
  {
30437
30396
  id: "basic",
@@ -36102,9 +36061,7 @@ export class MetergroupVerticalDemo {
36102
36061
  id: "accessibility",
36103
36062
  label: "Accessibility",
36104
36063
  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 .",
36105
- examples: {
36106
- typescript: '<span id="dd1">Options</span>\n<p-multiselect ariaLabelledBy="dd1"/>\n\n<p-multiselect ariaLabel="Options"/>'
36107
- }
36064
+ examples: null
36108
36065
  },
36109
36066
  {
36110
36067
  id: "basic",
@@ -38143,9 +38100,7 @@ export class MultiselectVirtualscrollDemo {
38143
38100
  id: "accessibility",
38144
38101
  label: "Accessibility",
38145
38102
  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.",
38146
- examples: {
38147
- typescript: '<span id="lb">Options</span>\n<p-orderlist ariaLabelledBy="lb" />\n\n<p-orderlist ariaLabel="City" />'
38148
- }
38103
+ examples: null
38149
38104
  },
38150
38105
  {
38151
38106
  id: "basic",
@@ -41916,9 +41871,7 @@ export class PanelmenuTemplateDemo implements OnInit {
41916
41871
  id: "accessibility",
41917
41872
  label: "Accessibility",
41918
41873
  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.",
41919
- examples: {
41920
- 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" />'
41921
- }
41874
+ examples: null
41922
41875
  },
41923
41876
  {
41924
41877
  id: "basic",
@@ -42928,9 +42881,7 @@ export class PasswordTogglemaskDemo {
42928
42881
  id: "accessibility",
42929
42882
  label: "Accessibility",
42930
42883
  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.",
42931
- examples: {
42932
- typescript: '<span id="lb">Options</span>\n<p-picklist ariaLabelledBy="lb" />\n\n<p-picklist ariaLabel="City" />'
42933
- }
42884
+ examples: null
42934
42885
  },
42935
42886
  {
42936
42887
  id: "basic",
@@ -44439,9 +44390,7 @@ export class PopoverTemplateDemo {}`
44439
44390
  id: "accessibility",
44440
44391
  label: "Accessibility",
44441
44392
  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.",
44442
- examples: {
44443
- typescript: '<span id="label_status">Status</span>\n<p-progressbar aria-labelledby="label_status" />\n\n<p-progressbar aria-label="Status" />'
44444
- }
44393
+ examples: null
44445
44394
  },
44446
44395
  {
44447
44396
  id: "basic",
@@ -44734,9 +44683,7 @@ export class ProgressbarTemplateDemo {}`
44734
44683
  id: "accessibility",
44735
44684
  label: "Accessibility",
44736
44685
  description: "Screen Reader ProgressSpinner components uses progressbar role. Value to describe the component can be defined using aria-labelledby and aria-label props.",
44737
- examples: {
44738
- typescript: '<p-progress-spinner aria-label="Loading"></p-progress-spinner>'
44739
- }
44686
+ examples: null
44740
44687
  },
44741
44688
  {
44742
44689
  id: "basic",
@@ -44904,9 +44851,7 @@ export class ProgressspinnerCustomDemo {}`
44904
44851
  id: "accessibility",
44905
44852
  label: "Accessibility",
44906
44853
  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.",
44907
- examples: {
44908
- 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" />'
44909
- }
44854
+ examples: null
44910
44855
  },
44911
44856
  {
44912
44857
  id: "disabled",
@@ -46258,303 +46203,43 @@ export class RippleDefaultDemo {}`
46258
46203
  id: "basic",
46259
46204
  label: "Basic",
46260
46205
  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.",
46261
- examples: {
46262
- typescript: `import { Component, OnInit } from '@angular/core';
46263
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46264
-
46265
- @Component({
46266
- template: \`
46267
- <div class="card flex justify-center">
46268
- <p-virtualscroller [items]="items" [itemSize]="50" scrollHeight="200px" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46269
- <ng-template #item let-item let-options="options">
46270
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46271
- {{ item }}
46272
- </div>
46273
- </ng-template>
46274
- </p-virtualscroller>
46275
- </div>
46276
- \`,
46277
- standalone: true,
46278
- imports: [VirtualScrollerModule]
46279
- })
46280
- export class ScrollerBasicDemo implements OnInit {
46281
- items!: string[];
46282
-
46283
- ngOnInit() {
46284
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46285
- }
46286
- }`
46287
- }
46206
+ examples: null
46288
46207
  },
46289
46208
  {
46290
46209
  id: "delay",
46291
46210
  label: "Delay",
46292
46211
  description: "Scroll delay is adjusted by using delay property.",
46293
- examples: {
46294
- typescript: `import { Component, OnInit } from '@angular/core';
46295
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46296
-
46297
- @Component({
46298
- template: \`
46299
- <div class="card flex flex-wrap justify-center gap-4">
46300
- <div>
46301
- <span class="font-bold block mb-2">No Delay</span>
46302
- <p-virtualscroller [items]="items" [itemSize]="50" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46303
- <ng-template #item let-item let-options="options">
46304
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46305
- {{ item }}
46306
- </div>
46307
- </ng-template>
46308
- </p-virtualscroller>
46309
- </div>
46310
- <div>
46311
- <span class="font-bold block mb-2">150ms</span>
46312
- <p-virtualscroller [items]="items" [itemSize]="50" [delay]="150" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46313
- <ng-template #item let-item let-options="options">
46314
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46315
- {{ item }}
46316
- </div>
46317
- </ng-template>
46318
- </p-virtualscroller>
46319
- </div>
46320
- <div>
46321
- <span class="font-bold block mb-2">500ms</span>
46322
- <p-virtualscroller [items]="items" [itemSize]="50" [delay]="500" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46323
- <ng-template #item let-item let-options="options">
46324
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46325
- {{ item }}
46326
- </div>
46327
- </ng-template>
46328
- </p-virtualscroller>
46329
- </div>
46330
- </div>
46331
- \`,
46332
- standalone: true,
46333
- imports: [VirtualScrollerModule]
46334
- })
46335
- export class ScrollerDelayDemo implements OnInit {
46336
- items!: string[];
46337
-
46338
- ngOnInit() {
46339
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46340
- }
46341
- }`
46342
- }
46212
+ examples: null
46343
46213
  },
46344
46214
  {
46345
46215
  id: "grid",
46346
46216
  label: "Grid",
46347
46217
  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.",
46348
- examples: {
46349
- typescript: `import { Component, OnInit } from '@angular/core';
46350
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46351
-
46352
- @Component({
46353
- template: \`
46354
- <div class="card flex justify-center">
46355
- <p-virtualscroller [items]="items" [itemSize]="[50, 100]" orientation="both" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46356
- <ng-template #item let-item let-options="options">
46357
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46358
- <div *ngFor="let el of item" style="width: 100px">{{ el }}</div>
46359
- </div>
46360
- </ng-template>
46361
- </p-virtualscroller>
46362
- </div>
46363
- \`,
46364
- standalone: true,
46365
- imports: [VirtualScrollerModule]
46366
- })
46367
- export class ScrollerGridDemo implements OnInit {
46368
- items!: string[][];
46369
-
46370
- ngOnInit() {
46371
- this.items = Array.from({ length: 1000 }).map((_, i) => Array.from({ length: 1000 }).map((_j, j) => \`Item #\${i}_\${j}\`));
46372
- }
46373
- }`
46374
- }
46218
+ examples: null
46375
46219
  },
46376
46220
  {
46377
46221
  id: "horizontal",
46378
46222
  label: "Horizontal",
46379
46223
  description: "Setting orientation to horizontal enables scrolling horizontally. In this case, the itemSize should refer to the width of an item.",
46380
- examples: {
46381
- typescript: `import { Component, OnInit } from '@angular/core';
46382
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46383
-
46384
- @Component({
46385
- template: \`
46386
- <div class="card flex justify-center">
46387
- <p-virtualscroller [items]="items" [itemSize]="50" scrollHeight="200px" orientation="horizontal" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46388
- <ng-template #item let-item let-options="options">
46389
- <div class="flex items-center p-2" style="writing-mode: vertical-lr; width: 50px;" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46390
- {{ item }}
46391
- </div>
46392
- </ng-template>
46393
- </p-virtualscroller>
46394
- </div>
46395
- \`,
46396
- standalone: true,
46397
- imports: [VirtualScrollerModule]
46398
- })
46399
- export class ScrollerHorizontalDemo implements OnInit {
46400
- items!: string[];
46401
-
46402
- ngOnInit() {
46403
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46404
- }
46405
- }`
46406
- }
46224
+ examples: null
46407
46225
  },
46408
46226
  {
46409
46227
  id: "lazyload",
46410
46228
  label: "lazyload-doc",
46411
46229
  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.",
46412
- examples: {
46413
- typescript: `import { Component, OnInit } from '@angular/core';
46414
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46415
-
46416
- interface LazyEvent {
46417
- first: number;
46418
- last: number;
46419
- }
46420
-
46421
- @Component({
46422
- template: \`
46423
- <div class="card flex justify-center">
46424
- <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' }">
46425
- <ng-template #item let-item let-options="options">
46426
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46427
- {{ item }}
46428
- </div>
46429
- </ng-template>
46430
- </p-virtualscroller>
46431
- </div>
46432
- \`,
46433
- standalone: true,
46434
- imports: [VirtualScrollerModule]
46435
- })
46436
- export class ScrollerLazyloadDemo implements OnInit {
46437
- items!: string[];
46438
- lazyLoading: boolean = true;
46439
- loadLazyTimeout: any;
46440
-
46441
- ngOnInit() {
46442
- this.items = Array.from({ length: 1000 });
46443
- }
46444
-
46445
- onLazyLoad(event: LazyEvent) {
46446
- this.lazyLoading = true;
46447
-
46448
- if (this.loadLazyTimeout) {
46449
- clearTimeout(this.loadLazyTimeout);
46450
- }
46451
-
46452
- //imitate delay of a backend call
46453
- this.loadLazyTimeout = setTimeout(
46454
- () => {
46455
- const { first, last } = event;
46456
- const lazyItems = [...this.items];
46457
-
46458
- for (let i = first; i < last; i++) {
46459
- lazyItems[i] = \`Item #\${i}\`;
46460
- }
46461
-
46462
- this.items = lazyItems;
46463
- this.lazyLoading = false;
46464
- this.cd.markForCheck();
46465
- },
46466
- Math.random() * 1000 + 250
46467
- );
46468
- }
46469
- }`
46470
- }
46230
+ examples: null
46471
46231
  },
46472
46232
  {
46473
46233
  id: "loader",
46474
46234
  label: "loader-doc",
46475
46235
  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 .",
46476
- examples: {
46477
- typescript: `import { Component, OnInit } from '@angular/core';
46478
- import { SkeletonModule } from 'primeng/skeleton';
46479
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46480
-
46481
- @Component({
46482
- template: \`
46483
- <div class="card flex flex-wrap justify-center gap-4">
46484
- <div>
46485
- <p-virtualscroller [items]="items" [itemSize]="50" [showLoader]="true" [delay]="250" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46486
- <ng-template #item let-item let-options="options">
46487
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46488
- {{ item }}
46489
- </div>
46490
- </ng-template>
46491
- </p-virtualscroller>
46492
- </div>
46493
- <div>
46494
- <p-virtualscroller [items]="items" [itemSize]="50" [showLoader]="true" [delay]="250" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46495
- <ng-template #item let-item let-options="options">
46496
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46497
- {{ item }}
46498
- </div>
46499
- </ng-template>
46500
- <ng-template pTemplate="loader" let-options="options">
46501
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46502
- <p-skeleton [width]="options.even ? '60%' : '50%'" height="1.3rem"></p-skeleton>
46503
- </div>
46504
- </ng-template>
46505
- </p-virtualscroller>
46506
- </div>
46507
- </div>
46508
- \`,
46509
- standalone: true,
46510
- imports: [SkeletonModule, VirtualScrollerModule]
46511
- })
46512
- export class ScrollerLoaderDemo implements OnInit {
46513
- items!: string[];
46514
-
46515
- ngOnInit() {
46516
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46517
- }
46518
- }`
46519
- }
46236
+ examples: null
46520
46237
  },
46521
46238
  {
46522
46239
  id: "programmatic",
46523
46240
  label: "Programmatic",
46524
46241
  description: "Scrolling to a specific index can be done with the scrollToIndex function.",
46525
- examples: {
46526
- typescript: `import { Component, OnInit } from '@angular/core';
46527
- import { ButtonModule } from 'primeng/button';
46528
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46529
-
46530
- @Component({
46531
- template: \`
46532
- <div class="card flex flex-col items-center gap-4">
46533
- <p-button label="Reset" (click)="reset()" />
46534
- <p-virtualscroller #sc [items]="items" [itemSize]="50" scrollHeight="200px" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46535
- <ng-template #item let-item let-options="options">
46536
- <div class="flex items-center p-2" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }" style="height: 50px;">
46537
- {{ item }}
46538
- </div>
46539
- </ng-template>
46540
- </p-virtualscroller>
46541
- </div>
46542
- \`,
46543
- standalone: true,
46544
- imports: [ButtonModule, VirtualScrollerModule]
46545
- })
46546
- export class ScrollerProgrammaticDemo implements OnInit {
46547
- items: string[] = [];
46548
-
46549
- ngOnInit() {
46550
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46551
- }
46552
-
46553
- reset() {
46554
- this.sc.scrollToIndex(0, 'smooth');
46555
- }
46556
- }`
46557
- }
46242
+ examples: null
46558
46243
  },
46559
46244
  {
46560
46245
  id: "scrolloptions",
@@ -46566,51 +46251,7 @@ export class ScrollerProgrammaticDemo implements OnInit {
46566
46251
  id: "template",
46567
46252
  label: "Template",
46568
46253
  description: "Scroller content is customizable by using ng-template . Valid values are content , item , loader and loadericon",
46569
- examples: {
46570
- typescript: `import { Component, OnInit } from '@angular/core';
46571
- import { SkeletonModule } from 'primeng/skeleton';
46572
- import { VirtualScrollerModule } from 'primeng/virtualscroller';
46573
-
46574
- @Component({
46575
- template: \`
46576
- <div class="card flex justify-center">
46577
- <p-virtualscroller [items]="items" [itemSize]="25 * 7" [showLoader]="true" [delay]="250" [numToleratedItems]="20" styleClass="border border-surface" [style]="{ width: '200px', height: '200px' }">
46578
- <ng-template #item let-item let-options="options">
46579
- <div class="flex flex-col align-items-strech" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46580
- <div class="flex items-center px-2" style="height: 25px">Item: {{ item }}</div>
46581
- <div class="flex items-center px-2" style="height: 25px">Index: {{ options.index }}</div>
46582
- <div class="flex items-center px-2" style="height: 25px">Count: {{ options.count }}</div>
46583
- <div class="flex items-center px-2" style="height: 25px">First: {{ options.first }}</div>
46584
- <div class="flex items-center px-2" style="height: 25px">Last: {{ options.last }}</div>
46585
- <div class="flex items-center px-2" style="height: 25px">Even: {{ options.even }}</div>
46586
- <div class="flex items-center px-2" style="height: 25px">Odd: {{ options.odd }}</div>
46587
- </div>
46588
- </ng-template>
46589
- <ng-template #loader let-options="options">
46590
- <div class="flex flex-col items-stretch" [ngClass]="{ 'bg-surface-100 dark:bg-surface-700': options.odd }">
46591
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46592
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46593
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46594
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46595
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46596
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="50%" height="1.2rem"></p-skeleton></div>
46597
- <div class="flex items-center px-2" style="height: 25px"><p-skeleton width="60%" height="1.2rem"></p-skeleton></div>
46598
- </div>
46599
- </ng-template>
46600
- </p-virtualscroller>
46601
- </div>
46602
- \`,
46603
- standalone: true,
46604
- imports: [SkeletonModule, VirtualScrollerModule]
46605
- })
46606
- export class ScrollerTemplateDemo implements OnInit {
46607
- items!: string[];
46608
-
46609
- ngOnInit() {
46610
- this.items = Array.from({ length: 1000 }).map((_, i) => \`Item #\${i}\`);
46611
- }
46612
- }`
46613
- }
46254
+ examples: null
46614
46255
  }
46615
46256
  ],
46616
46257
  api: {
@@ -47416,9 +47057,7 @@ export class ScrolltopElementDemo {}`
47416
47057
  id: "accessibility",
47417
47058
  label: "Accessibility",
47418
47059
  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.",
47419
- examples: {
47420
- typescript: '<span id="dd1">Options</span>\n<p-select ariaLabelledBy="dd1"/>\n\n<p-select ariaLabel="Options"/>'
47421
- }
47060
+ examples: null
47422
47061
  },
47423
47062
  {
47424
47063
  id: "basic",
@@ -50443,9 +50082,7 @@ export class SkeletonShapesDemo {}`
50443
50082
  id: "accessibility",
50444
50083
  label: "Accessibility",
50445
50084
  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.",
50446
- examples: {
50447
- typescript: '<span id="label_number">Number</span>\n<p-slider ariaLabelledBy="label_number" />\n\n<p-slider ariaLabel="Number" />'
50448
- }
50085
+ examples: null
50449
50086
  },
50450
50087
  {
50451
50088
  id: "basic",
@@ -51018,9 +50655,7 @@ export class SliderVerticalDemo {
51018
50655
  id: "accessibility",
51019
50656
  label: "Accessibility",
51020
50657
  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.",
51021
- examples: {
51022
- typescript: '<p-speeddial aria-label="Options" />'
51023
- }
50658
+ examples: null
51024
50659
  },
51025
50660
  {
51026
50661
  id: "circle",
@@ -51863,9 +51498,7 @@ export class SpeeddialTooltipDemo implements OnInit {
51863
51498
  id: "accessibility",
51864
51499
  label: "Accessibility",
51865
51500
  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.",
51866
- examples: {
51867
- typescript: `<p-splitbutton [buttonProps]="{'aria-label': 'Default Action'}" [menuButtonProps]="{'aria-label': 'More Options'}" />`
51868
- }
51501
+ examples: null
51869
51502
  },
51870
51503
  {
51871
51504
  id: "basic",
@@ -61016,9 +60649,7 @@ export class TerminalBasicDemo {
61016
60649
  id: "accessibility",
61017
60650
  label: "Accessibility",
61018
60651
  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.",
61019
- examples: {
61020
- 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>'
61021
- }
60652
+ examples: null
61022
60653
  },
61023
60654
  {
61024
60655
  id: "autoresize",
@@ -64049,9 +63680,7 @@ export class ToastTemplateDemo {
64049
63680
  id: "accessibility",
64050
63681
  label: "Accessibility",
64051
63682
  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.",
64052
- examples: {
64053
- typescript: '<span id="rememberme">Remember Me</span>\n<p-togglebutton ariaLabelledBy="rememberme" />\n\n<p-togglebutton ariaLabel="Remember Me" />'
64054
- }
63683
+ examples: null
64055
63684
  },
64056
63685
  {
64057
63686
  id: "basic",
@@ -64719,9 +64348,7 @@ export class TogglebuttonTemplatedrivenformsDemo {
64719
64348
  id: "accessibility",
64720
64349
  label: "Accessibility",
64721
64350
  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.",
64722
- examples: {
64723
- 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" />'
64724
- }
64351
+ examples: null
64725
64352
  },
64726
64353
  {
64727
64354
  id: "basic",
@@ -65313,9 +64940,7 @@ export class ToggleswitchTemplatedrivenformsDemo {
65313
64940
  id: "accessibility",
65314
64941
  label: "Accessibility",
65315
64942
  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.",
65316
- examples: {
65317
- typescript: '<p-toolbar aria-label="Actions">\n Content\n</p-toolbar>'
65318
- }
64943
+ examples: null
65319
64944
  },
65320
64945
  {
65321
64946
  id: "basic",
@@ -67449,9 +67074,7 @@ export class TreeVirtualscrolllazyDemo implements OnInit {
67449
67074
  id: "accessibility",
67450
67075
  label: "Accessibility",
67451
67076
  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.",
67452
- examples: {
67453
- typescript: '<span id="dd1">Options</span>\n<p-treeselect ariaLabelledBy="dd1" />\n\n<p-treeselect ariaLabel="Options" />'
67454
- }
67077
+ examples: null
67455
67078
  },
67456
67079
  {
67457
67080
  id: "basic",
@@ -73323,18 +72946,7 @@ export class TreetableTemplateDemo implements OnInit {
73323
72946
  id: "example-",
73324
72947
  label: "Example-",
73325
72948
  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.",
73326
- examples: {
73327
- typescript: `<p-button
73328
- label="Search"
73329
- icon="pi pi-search"
73330
- [unstyled]="true"
73331
- [pt]="{
73332
- 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',
73333
- label: 'text-white font-bold text-lg',
73334
- icon: 'text-white !text-xl'
73335
- }"
73336
- />`
73337
- }
72949
+ examples: null
73338
72950
  },
73339
72951
  {
73340
72952
  id: "global-",
@@ -73368,17 +72980,13 @@ export class TreetableTemplateDemo implements OnInit {
73368
72980
  id: "basic-",
73369
72981
  label: "Basic-",
73370
72982
  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",
73371
- examples: {
73372
- 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>'
73373
- }
72983
+ examples: null
73374
72984
  },
73375
72985
  {
73376
72986
  id: "color-",
73377
72987
  label: "Color-",
73378
72988
  description: "Icon color is defined with the color property which is inherited from parent by default.",
73379
- examples: {
73380
- 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>'
73381
- }
72989
+ examples: null
73382
72990
  },
73383
72991
  {
73384
72992
  id: "constants-",
@@ -73420,17 +73028,13 @@ export class TreetableTemplateDemo implements OnInit {
73420
73028
  id: "size-",
73421
73029
  label: "Size-",
73422
73030
  description: "Size of an icon is controlled with the font-size property of the element.",
73423
- examples: {
73424
- 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>'
73425
- }
73031
+ examples: null
73426
73032
  },
73427
73033
  {
73428
73034
  id: "spin-",
73429
73035
  label: "Spin-",
73430
73036
  description: "Special pi-spin class applies infinite rotation to an icon.",
73431
- examples: {
73432
- 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>'
73433
- }
73037
+ examples: null
73434
73038
  }
73435
73039
  ]
73436
73040
  },
@@ -73444,33 +73048,25 @@ export class TreetableTemplateDemo implements OnInit {
73444
73048
  id: "fontawesome-",
73445
73049
  label: "Fontawesome-",
73446
73050
  description: "Font Awesome is a popular icon library with a wide range of icons.",
73447
- examples: {
73448
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <i class="fa-light fa-chevron-down"></i>\n </ng-template>\n</p-dropdown>'
73449
- }
73051
+ examples: null
73450
73052
  },
73451
73053
  {
73452
73054
  id: "image-",
73453
73055
  label: "Image-",
73454
73056
  description: "Any type of image can be used as an icon.",
73455
- examples: {
73456
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <img alt="dropdown icon" src="/assets/icons/arrow_down.png">\n </ng-template>\n</p-dropdown>'
73457
- }
73057
+ examples: null
73458
73058
  },
73459
73059
  {
73460
73060
  id: "material-",
73461
73061
  label: "Material-",
73462
73062
  description: "Material icons is the official icon library based on Google Material Design.",
73463
- examples: {
73464
- typescript: '<p-dropdown>\n <ng-template #dropdownicon>\n <span class="material-icons">arrow_drop_down</span>\n </ng-template>\n</p-dropdown>'
73465
- }
73063
+ examples: null
73466
73064
  },
73467
73065
  {
73468
73066
  id: "svg-",
73469
73067
  label: "Svg-",
73470
73068
  description: "Inline SVGs are embedded inside the dom.",
73471
- examples: {
73472
- 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>'
73473
- }
73069
+ examples: null
73474
73070
  }
73475
73071
  ]
73476
73072
  },
@@ -73534,9 +73130,7 @@ export class TreetableTemplateDemo implements OnInit {
73534
73130
  id: "animations-",
73535
73131
  label: "Animations-",
73536
73132
  description: "The plugin also adds extended animation utilities that can be used with the styleclass and animateonscroll directives.",
73537
- examples: {
73538
- 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>'
73539
- }
73133
+ examples: null
73540
73134
  },
73541
73135
  {
73542
73136
  id: "colorpalette-",
@@ -73911,7 +73505,7 @@ export class TreetableTemplateDemo implements OnInit {
73911
73505
  // package.json
73912
73506
  var package_default = {
73913
73507
  name: "@primeng/mcp",
73914
- version: "21.1.2",
73508
+ version: "21.1.4",
73915
73509
  author: "PrimeTek Informatics",
73916
73510
  description: "Model Context Protocol (MCP) server for PrimeNg component library",
73917
73511
  homepage: "https://primeng.org/",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primeng/mcp",
3
- "version": "21.1.2",
3
+ "version": "21.1.4",
4
4
  "author": "PrimeTek Informatics",
5
5
  "description": "Model Context Protocol (MCP) server for PrimeNg component library",
6
6
  "homepage": "https://primeng.org/",