@primeng/mcp 21.1.4 → 21.1.5

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 +604 -2
  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-04",
9
+ generatedAt: "2026-03-27",
10
10
  components: [
11
11
  {
12
12
  name: "accordion",
@@ -25486,6 +25486,608 @@ export class IftalabelInvalidDemo {
25486
25486
  ]
25487
25487
  }
25488
25488
  },
25489
+ {
25490
+ name: "image",
25491
+ title: "Angular Image Component",
25492
+ description: "Displays an image with preview and tranformation options.",
25493
+ sections: [
25494
+ {
25495
+ id: "accessibility",
25496
+ label: "Accessibility",
25497
+ description: "Screen Reader The preview button is a native button element with an aria-label that refers to the aria.zoomImage property of the locale API by default. When preview is active, dialog role with aria-modal is applied to the overlay image container. Button controls use aria.rotateRight , aria.rotateLeft , aria.zoomIn , aria.zoomOut and aria.close from the locale API as aria-label . ButtonBar Keyboard Support When preview is activated, close button receives the initial focus. Key Function tab Moves focus through button bar. enter Activates the button. space Activates the button. esc Closes the image preview.",
25498
+ examples: null
25499
+ },
25500
+ {
25501
+ id: "basic",
25502
+ label: "Basic",
25503
+ description: "Image is used as the native img element and supports all properties that the native element has. For multiple image, see Galleria.",
25504
+ examples: {
25505
+ typescript: `import { Component } from '@angular/core';
25506
+ import { ImageModule } from 'primeng/image';
25507
+
25508
+ @Component({
25509
+ template: \`
25510
+ <div class="card flex justify-center">
25511
+ <p-image src="https://primefaces.org/cdn/primeng/images/galleria/galleria10.jpg" alt="Image" width="250" />
25512
+ </div>
25513
+ \`,
25514
+ standalone: true,
25515
+ imports: [ImageModule]
25516
+ })
25517
+ export class ImageBasicDemo {}`
25518
+ }
25519
+ },
25520
+ {
25521
+ id: "preview",
25522
+ label: "Preview",
25523
+ description: "Preview mode displays a modal layer when the image is clicked that provides transformation options such as rotating and zooming.",
25524
+ examples: {
25525
+ typescript: `import { Component } from '@angular/core';
25526
+ import { ImageModule } from 'primeng/image';
25527
+
25528
+ @Component({
25529
+ template: \`
25530
+ <div class="card flex justify-center">
25531
+ <p-image src="https://primefaces.org/cdn/primeng/images/galleria/galleria10.jpg" alt="Image" width="250" [preview]="true" />
25532
+ </div>
25533
+ \`,
25534
+ standalone: true,
25535
+ imports: [ImageModule]
25536
+ })
25537
+ export class ImagePreviewDemo {}`
25538
+ }
25539
+ },
25540
+ {
25541
+ id: "previewimagesource",
25542
+ label: "previewimagesource-doc",
25543
+ description: "In case that you want to show different image on preview, you can set previewImageSrc attribute. It could come handy when wanted to use smaller image version at first and bigger one on preview.",
25544
+ examples: {
25545
+ typescript: `import { Component } from '@angular/core';
25546
+ import { ImageModule } from 'primeng/image';
25547
+
25548
+ @Component({
25549
+ template: \`
25550
+ <div class="card flex justify-center">
25551
+ <p-image src="https://primefaces.org/cdn/primeng/images/galleria/galleria11.jpg" previewImageSrc="https://primefaces.org/cdn/primeng/images/galleria/galleria11.jpg" alt="Image" width="250" [preview]="true" />
25552
+ </div>
25553
+ \`,
25554
+ standalone: true,
25555
+ imports: [ImageModule]
25556
+ })
25557
+ export class ImagePreviewimagesourceDemo {}`
25558
+ }
25559
+ },
25560
+ {
25561
+ id: "template",
25562
+ label: "Template",
25563
+ description: "An eye icon is displayed by default when the image is hovered in preview mode. Use the indicator template for custom content.",
25564
+ examples: {
25565
+ typescript: `import { Component } from '@angular/core';
25566
+ import { ImageModule } from 'primeng/image';
25567
+
25568
+ @Component({
25569
+ template: \`
25570
+ <div class="card flex justify-center">
25571
+ <p-image src="https://primefaces.org/cdn/primeng/images/galleria/galleria11.jpg" [preview]="true" alt="Image" width="250">
25572
+ <ng-template #indicator>
25573
+ <i class="pi pi-search"></i>
25574
+ </ng-template>
25575
+ <ng-template #image>
25576
+ <img src="https://primefaces.org/cdn/primeng/images/galleria/galleria11.jpg" alt="image" width="250" />
25577
+ </ng-template>
25578
+ <ng-template #preview let-style="style" let-previewCallback="previewCallback">
25579
+ <img src="https://primefaces.org/cdn/primeng/images/galleria/galleria11.jpg" alt="image" [style]="style" (click)="previewCallback()" />
25580
+ </ng-template>
25581
+ </p-image>
25582
+ </div>
25583
+ \`,
25584
+ standalone: true,
25585
+ imports: [ImageModule]
25586
+ })
25587
+ export class ImageTemplateDemo {}`
25588
+ }
25589
+ }
25590
+ ],
25591
+ api: {
25592
+ props: [
25593
+ {
25594
+ name: "dt",
25595
+ type: "InputSignal<Object>",
25596
+ default: "undefined",
25597
+ description: "Defines scoped design tokens of the component.",
25598
+ deprecated: ""
25599
+ },
25600
+ {
25601
+ name: "unstyled",
25602
+ type: "InputSignal<boolean>",
25603
+ default: "undefined",
25604
+ description: "Indicates whether the component should be rendered without styles.",
25605
+ deprecated: ""
25606
+ },
25607
+ {
25608
+ name: "pt",
25609
+ type: "InputSignal<ImagePassThrough>",
25610
+ default: "undefined",
25611
+ description: "Used to pass attributes to DOM elements inside the component.",
25612
+ deprecated: ""
25613
+ },
25614
+ {
25615
+ name: "ptOptions",
25616
+ type: "InputSignal<PassThroughOptions>",
25617
+ default: "undefined",
25618
+ description: "Used to configure passthrough(pt) options of the component.",
25619
+ deprecated: ""
25620
+ },
25621
+ {
25622
+ name: "imageClass",
25623
+ type: "string",
25624
+ default: "-",
25625
+ description: "Style class of the image element.",
25626
+ deprecated: ""
25627
+ },
25628
+ {
25629
+ name: "imageStyle",
25630
+ type: "{ [klass: string]: any }",
25631
+ default: "-",
25632
+ description: "Inline style of the image element.",
25633
+ deprecated: ""
25634
+ },
25635
+ {
25636
+ name: "styleClass",
25637
+ type: "string",
25638
+ default: "-",
25639
+ description: "Class of the element.",
25640
+ deprecated: "since v20.0.0, use "
25641
+ },
25642
+ {
25643
+ name: "src",
25644
+ type: "string | SafeUrl",
25645
+ default: "-",
25646
+ description: "The source path for the main image.",
25647
+ deprecated: ""
25648
+ },
25649
+ {
25650
+ name: "srcSet",
25651
+ type: "string | SafeUrl",
25652
+ default: "-",
25653
+ description: "The srcset definition for the main image.",
25654
+ deprecated: ""
25655
+ },
25656
+ {
25657
+ name: "sizes",
25658
+ type: "string",
25659
+ default: "-",
25660
+ description: "The sizes definition for the main image.",
25661
+ deprecated: ""
25662
+ },
25663
+ {
25664
+ name: "previewImageSrc",
25665
+ type: "string | SafeUrl",
25666
+ default: "-",
25667
+ description: "The source path for the preview image.",
25668
+ deprecated: ""
25669
+ },
25670
+ {
25671
+ name: "previewImageSrcSet",
25672
+ type: "string | SafeUrl",
25673
+ default: "-",
25674
+ description: "The srcset definition for the preview image.",
25675
+ deprecated: ""
25676
+ },
25677
+ {
25678
+ name: "previewImageSizes",
25679
+ type: "string",
25680
+ default: "-",
25681
+ description: "The sizes definition for the preview image.",
25682
+ deprecated: ""
25683
+ },
25684
+ {
25685
+ name: "alt",
25686
+ type: "string",
25687
+ default: "-",
25688
+ description: "Attribute of the preview image element.",
25689
+ deprecated: ""
25690
+ },
25691
+ {
25692
+ name: "width",
25693
+ type: "string",
25694
+ default: "-",
25695
+ description: "Attribute of the image element.",
25696
+ deprecated: ""
25697
+ },
25698
+ {
25699
+ name: "height",
25700
+ type: "string",
25701
+ default: "-",
25702
+ description: "Attribute of the image element.",
25703
+ deprecated: ""
25704
+ },
25705
+ {
25706
+ name: "loading",
25707
+ type: '"eager" | "lazy"',
25708
+ default: "-",
25709
+ description: "Attribute of the image element.",
25710
+ deprecated: ""
25711
+ },
25712
+ {
25713
+ name: "preview",
25714
+ type: "boolean",
25715
+ default: "false",
25716
+ description: "Controls the preview functionality.",
25717
+ deprecated: ""
25718
+ },
25719
+ {
25720
+ name: "showTransitionOptions",
25721
+ type: "string",
25722
+ default: "150ms cubic-bezier(0, 0, 0.2, 1)",
25723
+ description: "Transition options of the show animation",
25724
+ deprecated: "since v21.0.0. Use "
25725
+ },
25726
+ {
25727
+ name: "hideTransitionOptions",
25728
+ type: "string",
25729
+ default: "150ms cubic-bezier(0, 0, 0.2, 1)",
25730
+ description: "Transition options of the hide animation",
25731
+ deprecated: "since v21.0.0. Use "
25732
+ },
25733
+ {
25734
+ name: "modalEnterAnimation",
25735
+ type: "InputSignal<string>",
25736
+ default: "'p-modal-enter'",
25737
+ description: "Enter animation class name of modal.",
25738
+ deprecated: ""
25739
+ },
25740
+ {
25741
+ name: "modalLeaveAnimation",
25742
+ type: "InputSignal<string>",
25743
+ default: "'p-modal-leave'",
25744
+ description: "Leave animation class name of modal.",
25745
+ deprecated: ""
25746
+ },
25747
+ {
25748
+ name: "appendTo",
25749
+ type: "InputSignal<any>",
25750
+ default: "'self'",
25751
+ description: 'Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).',
25752
+ deprecated: ""
25753
+ },
25754
+ {
25755
+ name: "maskMotionOptions",
25756
+ type: "InputSignal<MotionOptions>",
25757
+ default: "...",
25758
+ description: "The motion options for the mask.",
25759
+ deprecated: ""
25760
+ },
25761
+ {
25762
+ name: "motionOptions",
25763
+ type: "InputSignal<MotionOptions>",
25764
+ default: "...",
25765
+ description: "The motion options.",
25766
+ deprecated: ""
25767
+ }
25768
+ ],
25769
+ templates: [
25770
+ {
25771
+ name: "indicator",
25772
+ type: "TemplateRef<void>",
25773
+ description: "Custom indicator template."
25774
+ },
25775
+ {
25776
+ name: "rotaterighticon",
25777
+ type: "TemplateRef<void>",
25778
+ description: "Custom rotate right icon template."
25779
+ },
25780
+ {
25781
+ name: "rotatelefticon",
25782
+ type: "TemplateRef<void>",
25783
+ description: "Custom rotate left icon template."
25784
+ },
25785
+ {
25786
+ name: "zoomouticon",
25787
+ type: "TemplateRef<void>",
25788
+ description: "Custom zoom out icon template."
25789
+ },
25790
+ {
25791
+ name: "zoominicon",
25792
+ type: "TemplateRef<void>",
25793
+ description: "Custom zoom in icon template."
25794
+ },
25795
+ {
25796
+ name: "closeicon",
25797
+ type: "TemplateRef<void>",
25798
+ description: "Custom close icon template."
25799
+ },
25800
+ {
25801
+ name: "preview",
25802
+ type: "TemplateRef<ImagePreviewTemplateContext>",
25803
+ description: "Custom preview template."
25804
+ },
25805
+ {
25806
+ name: "image",
25807
+ type: "TemplateRef<ImageImageTemplateContext>",
25808
+ description: "Custom image template."
25809
+ }
25810
+ ],
25811
+ emits: [
25812
+ {
25813
+ name: "onShow",
25814
+ parameters: [
25815
+ {
25816
+ name: "value",
25817
+ type: "any"
25818
+ }
25819
+ ],
25820
+ description: "Triggered when the preview overlay is shown."
25821
+ },
25822
+ {
25823
+ name: "onHide",
25824
+ parameters: [
25825
+ {
25826
+ name: "value",
25827
+ type: "any"
25828
+ }
25829
+ ],
25830
+ description: "Triggered when the preview overlay is hidden."
25831
+ },
25832
+ {
25833
+ name: "onImageError",
25834
+ parameters: [
25835
+ {
25836
+ name: "event",
25837
+ type: "Event"
25838
+ }
25839
+ ],
25840
+ description: "This event is triggered if an error occurs while loading an image file."
25841
+ }
25842
+ ],
25843
+ methods: null,
25844
+ pt: [
25845
+ {
25846
+ name: "root",
25847
+ type: "PassThroughOption<HTMLSpanElement, I>",
25848
+ description: "Used to pass attributes to the root's DOM element."
25849
+ },
25850
+ {
25851
+ name: "image",
25852
+ type: "PassThroughOption<HTMLImageElement, I>",
25853
+ description: "Used to pass attributes to the image's DOM element."
25854
+ },
25855
+ {
25856
+ name: "previewMask",
25857
+ type: "PassThroughOption<HTMLButtonElement, I>",
25858
+ description: "Used to pass attributes to the preview mask button's DOM element."
25859
+ },
25860
+ {
25861
+ name: "previewIcon",
25862
+ type: "PassThroughOption<SVGElement, I>",
25863
+ description: "Used to pass attributes to the preview icon's DOM element."
25864
+ },
25865
+ {
25866
+ name: "mask",
25867
+ type: "PassThroughOption<HTMLDivElement, I>",
25868
+ description: "Used to pass attributes to the mask's DOM element."
25869
+ },
25870
+ {
25871
+ name: "toolbar",
25872
+ type: "PassThroughOption<HTMLDivElement, I>",
25873
+ description: "Used to pass attributes to the toolbar's DOM element."
25874
+ },
25875
+ {
25876
+ name: "rotateRightButton",
25877
+ type: "PassThroughOption<HTMLButtonElement, I>",
25878
+ description: "Used to pass attributes to the rotate right button's DOM element."
25879
+ },
25880
+ {
25881
+ name: "rotateLeftButton",
25882
+ type: "PassThroughOption<HTMLButtonElement, I>",
25883
+ description: "Used to pass attributes to the rotate left button's DOM element."
25884
+ },
25885
+ {
25886
+ name: "zoomOutButton",
25887
+ type: "PassThroughOption<HTMLButtonElement, I>",
25888
+ description: "Used to pass attributes to the zoom out button's DOM element."
25889
+ },
25890
+ {
25891
+ name: "zoomInButton",
25892
+ type: "PassThroughOption<HTMLButtonElement, I>",
25893
+ description: "Used to pass attributes to the zoom in button's DOM element."
25894
+ },
25895
+ {
25896
+ name: "closeButton",
25897
+ type: "PassThroughOption<HTMLButtonElement, I>",
25898
+ description: "Used to pass attributes to the close button's DOM element."
25899
+ },
25900
+ {
25901
+ name: "original",
25902
+ type: "PassThroughOption<HTMLImageElement, I>",
25903
+ description: "Used to pass attributes to the original/preview image's DOM element."
25904
+ },
25905
+ {
25906
+ name: "motion",
25907
+ type: "MotionOptions",
25908
+ description: "Used to pass options to the motion component/directive."
25909
+ }
25910
+ ],
25911
+ styles: [
25912
+ {
25913
+ class: "p-image",
25914
+ description: "Class name of the root element"
25915
+ },
25916
+ {
25917
+ class: "p-image-preview-mask",
25918
+ description: "Class name of the preview mask element"
25919
+ },
25920
+ {
25921
+ class: "p-image-preview-icon",
25922
+ description: "Class name of the preview icon element"
25923
+ },
25924
+ {
25925
+ class: "p-image-mask",
25926
+ description: "Class name of the mask element"
25927
+ },
25928
+ {
25929
+ class: "p-image-toolbar",
25930
+ description: "Class name of the toolbar element"
25931
+ },
25932
+ {
25933
+ class: "p-image-rotate-right-button",
25934
+ description: "Class name of the rotate right button element"
25935
+ },
25936
+ {
25937
+ class: "p-image-rotate-left-button",
25938
+ description: "Class name of the rotate left button element"
25939
+ },
25940
+ {
25941
+ class: "p-image-zoom-out-button",
25942
+ description: "Class name of the zoom out button element"
25943
+ },
25944
+ {
25945
+ class: "p-image-zoom-in-button",
25946
+ description: "Class name of the zoom in button element"
25947
+ },
25948
+ {
25949
+ class: "p-image-close-button",
25950
+ description: "Class name of the close button element"
25951
+ },
25952
+ {
25953
+ class: "p-image-original",
25954
+ description: "Class name of the original element"
25955
+ }
25956
+ ],
25957
+ tokens: [
25958
+ {
25959
+ token: "image.transition.duration",
25960
+ variable: "--p-image-transition-duration",
25961
+ description: "Transition duration of root"
25962
+ },
25963
+ {
25964
+ token: "image.preview.icon.size",
25965
+ variable: "--p-image-preview-icon-size",
25966
+ description: "Icon size of preview"
25967
+ },
25968
+ {
25969
+ token: "image.preview.mask.background",
25970
+ variable: "--p-image-preview-mask-background",
25971
+ description: "Mask background of preview"
25972
+ },
25973
+ {
25974
+ token: "image.preview.mask.color",
25975
+ variable: "--p-image-preview-mask-color",
25976
+ description: "Mask color of preview"
25977
+ },
25978
+ {
25979
+ token: "image.toolbar.position.left",
25980
+ variable: "--p-image-toolbar-position-left",
25981
+ description: "Position left of toolbar"
25982
+ },
25983
+ {
25984
+ token: "image.toolbar.position.right",
25985
+ variable: "--p-image-toolbar-position-right",
25986
+ description: "Position right of toolbar"
25987
+ },
25988
+ {
25989
+ token: "image.toolbar.position.top",
25990
+ variable: "--p-image-toolbar-position-top",
25991
+ description: "Position top of toolbar"
25992
+ },
25993
+ {
25994
+ token: "image.toolbar.position.bottom",
25995
+ variable: "--p-image-toolbar-position-bottom",
25996
+ description: "Position bottom of toolbar"
25997
+ },
25998
+ {
25999
+ token: "image.toolbar.blur",
26000
+ variable: "--p-image-toolbar-blur",
26001
+ description: "Blur of toolbar"
26002
+ },
26003
+ {
26004
+ token: "image.toolbar.background",
26005
+ variable: "--p-image-toolbar-background",
26006
+ description: "Background of toolbar"
26007
+ },
26008
+ {
26009
+ token: "image.toolbar.border.color",
26010
+ variable: "--p-image-toolbar-border-color",
26011
+ description: "Border color of toolbar"
26012
+ },
26013
+ {
26014
+ token: "image.toolbar.border.width",
26015
+ variable: "--p-image-toolbar-border-width",
26016
+ description: "Border width of toolbar"
26017
+ },
26018
+ {
26019
+ token: "image.toolbar.border.radius",
26020
+ variable: "--p-image-toolbar-border-radius",
26021
+ description: "Border radius of toolbar"
26022
+ },
26023
+ {
26024
+ token: "image.toolbar.padding",
26025
+ variable: "--p-image-toolbar-padding",
26026
+ description: "Padding of toolbar"
26027
+ },
26028
+ {
26029
+ token: "image.toolbar.gap",
26030
+ variable: "--p-image-toolbar-gap",
26031
+ description: "Gap of toolbar"
26032
+ },
26033
+ {
26034
+ token: "image.action.hover.background",
26035
+ variable: "--p-image-action-hover-background",
26036
+ description: "Hover background of action"
26037
+ },
26038
+ {
26039
+ token: "image.action.color",
26040
+ variable: "--p-image-action-color",
26041
+ description: "Color of action"
26042
+ },
26043
+ {
26044
+ token: "image.action.hover.color",
26045
+ variable: "--p-image-action-hover-color",
26046
+ description: "Hover color of action"
26047
+ },
26048
+ {
26049
+ token: "image.action.size",
26050
+ variable: "--p-image-action-size",
26051
+ description: "Size of action"
26052
+ },
26053
+ {
26054
+ token: "image.action.icon.size",
26055
+ variable: "--p-image-action-icon-size",
26056
+ description: "Icon size of action"
26057
+ },
26058
+ {
26059
+ token: "image.action.border.radius",
26060
+ variable: "--p-image-action-border-radius",
26061
+ description: "Border radius of action"
26062
+ },
26063
+ {
26064
+ token: "image.action.focus.ring.width",
26065
+ variable: "--p-image-action-focus-ring-width",
26066
+ description: "Focus ring width of action"
26067
+ },
26068
+ {
26069
+ token: "image.action.focus.ring.style",
26070
+ variable: "--p-image-action-focus-ring-style",
26071
+ description: "Focus ring style of action"
26072
+ },
26073
+ {
26074
+ token: "image.action.focus.ring.color",
26075
+ variable: "--p-image-action-focus-ring-color",
26076
+ description: "Focus ring color of action"
26077
+ },
26078
+ {
26079
+ token: "image.action.focus.ring.offset",
26080
+ variable: "--p-image-action-focus-ring-offset",
26081
+ description: "Focus ring offset of action"
26082
+ },
26083
+ {
26084
+ token: "image.action.focus.ring.shadow",
26085
+ variable: "--p-image-action-focus-ring-shadow",
26086
+ description: "Focus ring shadow of action"
26087
+ }
26088
+ ]
26089
+ }
26090
+ },
25489
26091
  {
25490
26092
  name: "imagecompare",
25491
26093
  title: "Angular ImageCompare Component",
@@ -73505,7 +74107,7 @@ export class TreetableTemplateDemo implements OnInit {
73505
74107
  // package.json
73506
74108
  var package_default = {
73507
74109
  name: "@primeng/mcp",
73508
- version: "21.1.4",
74110
+ version: "21.1.5",
73509
74111
  author: "PrimeTek Informatics",
73510
74112
  description: "Model Context Protocol (MCP) server for PrimeNg component library",
73511
74113
  homepage: "https://primeng.org/",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primeng/mcp",
3
- "version": "21.1.4",
3
+ "version": "21.1.5",
4
4
  "author": "PrimeTek Informatics",
5
5
  "description": "Model Context Protocol (MCP) server for PrimeNg component library",
6
6
  "homepage": "https://primeng.org/",