@exhaustive-ui/mcp 22.0.0-alpha.0 → 22.0.0-alpha.2

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 (52) hide show
  1. package/README.md +5 -5
  2. package/data/components/accordion.md +3 -3
  3. package/data/components/animateonscroll.md +3 -3
  4. package/data/components/autocomplete.md +3 -3
  5. package/data/components/avatar.md +10 -10
  6. package/data/components/card.md +1 -1
  7. package/data/components/carousel.md +4 -4
  8. package/data/components/cascadeselect.md +1 -1
  9. package/data/components/chip.md +4 -4
  10. package/data/components/contextmenu.md +3 -3
  11. package/data/components/dataview.md +5 -5
  12. package/data/components/dialog.md +1 -1
  13. package/data/components/dock.md +11 -11
  14. package/data/components/dragdrop.md +1 -1
  15. package/data/components/drawer.md +2 -2
  16. package/data/components/fieldset.md +1 -1
  17. package/data/components/fileupload.md +4 -4
  18. package/data/components/imagecompare.md +4 -4
  19. package/data/components/inplace.md +1 -1
  20. package/data/components/listbox.md +2 -2
  21. package/data/components/megamenu.md +1 -1
  22. package/data/components/menu.md +1 -1
  23. package/data/components/menubar.md +1 -1
  24. package/data/components/message.md +1 -1
  25. package/data/components/multiselect.md +2 -2
  26. package/data/components/orderlist.md +3 -3
  27. package/data/components/organizationchart.md +1 -1
  28. package/data/components/paginator.md +1 -1
  29. package/data/components/panel.md +1 -1
  30. package/data/components/picklist.md +2 -2
  31. package/data/components/popover.md +6 -6
  32. package/data/components/rating.md +2 -2
  33. package/data/components/select.md +7 -7
  34. package/data/components/slider.md +1 -1
  35. package/data/components/stepper.md +1 -1
  36. package/data/components/table.md +23 -23
  37. package/data/components/tabs.md +3 -3
  38. package/data/components/tag.md +1 -1
  39. package/data/components/timeline.md +1 -1
  40. package/data/components/toast.md +1 -1
  41. package/data/components/toolbar.md +1 -1
  42. package/data/components/tooltip.md +1 -1
  43. package/data/components.json +80 -80
  44. package/data/llms-full.txt +126 -126
  45. package/data/llms.txt +111 -111
  46. package/data/manifest.json +2 -2
  47. package/data/pages/llms.md +1 -1
  48. package/data/snapshot.json +2 -2
  49. package/dist/index.d.mts +1 -1
  50. package/dist/index.mjs +3 -3
  51. package/dist/index.mjs.map +1 -1
  52. package/package.json +2 -2
@@ -58,7 +58,7 @@
58
58
  "label": "Template",
59
59
  "description": "Accordion is customized with toggleicon template.",
60
60
  "examples": {
61
- "typescript": "import { Component } from '@angular/core';\nimport { AccordionModule } from '@exhaustive-ui/core/accordion';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\n\n@Component({\n template: `\n <div class=\"card flex justify-content-center\">\n <p-accordion value=\"0\">\n <p-accordion-panel value=\"0\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n <p-badge value=\"3\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n <p-accordion-panel value=\"1\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Onyama Limba</span>\n <p-badge value=\"4\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo\n enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n <p-accordion-panel value=\"2\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/ionibowcher.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Ioni Bowcher</span>\n <p-badge value=\"2\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in\n culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n </p-accordion>\n </div>\n `,\n standalone: true,\n imports: [AccordionModule, AvatarModule, BadgeModule]\n})\nexport class AccordionTemplateDemo {}"
61
+ "typescript": "import { Component } from '@angular/core';\nimport { AccordionModule } from '@exhaustive-ui/core/accordion';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\n\n@Component({\n template: `\n <div class=\"card flex justify-content-center\">\n <p-accordion value=\"0\">\n <p-accordion-panel value=\"0\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n <p-badge value=\"3\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n <p-accordion-panel value=\"1\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Onyama Limba</span>\n <p-badge value=\"4\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo\n enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n <p-accordion-panel value=\"2\">\n <p-accordion-header>\n <ng-template #toggleicon let-active=\"active\">\n @if (active) {\n <i class=\"pi pi-minus\"></i>\n } @else {\n <i class=\"pi pi-plus\"></i>\n }\n </ng-template>\n <span class=\"flex items-center gap-2 w-full\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/ionibowcher.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Ioni Bowcher</span>\n <p-badge value=\"2\" class=\"ml-auto mr-2\" />\n </span>\n </p-accordion-header>\n <p-accordion-content>\n <p class=\"m-0\">\n At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in\n culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.\n </p>\n </p-accordion-content>\n </p-accordion-panel>\n </p-accordion>\n </div>\n `,\n standalone: true,\n imports: [AccordionModule, AvatarModule, BadgeModule]\n})\nexport class AccordionTemplateDemo {}"
62
62
  }
63
63
  }
64
64
  ],
@@ -387,7 +387,7 @@
387
387
  "label": "Basic",
388
388
  "description": "Animation classes are defined with the enterClass and leaveClass properties. This example utilizes @exhaustive-ui/tailwindcss plugin animations however any valid CSS animation is supported.",
389
389
  "examples": {
390
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex flex-col items-center overflow-hidden\">\n <div class=\"flex flex-col items-center gap-2\">\n <span class=\"text-xl font-medium\">Scroll Down</span>\n <span class=\"animate-bounce h-8 w-8 bg-primary text-primary-contrast rounded-full inline-flex items-center justify-center\">\n <i class=\"pi pi-arrow-down\"></i>\n </span>\n </div>\n <div class=\"h-[40rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-l-8 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-user !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Individual</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 animate-duration-1000\" leaveClass=\"animate-leave fade-out-0\" class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-users !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Team</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-r-8 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-building !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Enterprise</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-t-20 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Jenna Thompson</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 slide-in-from-b-20 animate-duration-1000\" class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Isabel Garcia</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 slide-in-from-t-20 animate-duration-1000\" class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Xavier Mason</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 spin-in-45 slide-in-from-t-12 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">850K</span>\n <span class=\"text-2xl font-bold\">Customers</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 zoom-in-50 slide-in-from-t-20 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">$1.5M</span>\n <span class=\"text-2xl font-bold\">Revenue</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 spin-in-[-45deg] slide-in-from-t-16 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">140K</span>\n <span class=\"text-2xl font-bold\">Sales</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-50 animate-duration-1000\" class=\"flex flex-col bg-purple-500 text-white border-purple-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-wifi !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Bandwidth</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-75 animate-duration-1000\" class=\"flex flex-col bg-teal-500 text-white border-teal-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-database !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Storage</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-50 animate-duration-1000\" class=\"flex flex-col bg-indigo-500 text-white border-indigo-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-arrows-v !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Requests</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AnimateonscrollBasicDemo {}"
390
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex flex-col items-center overflow-hidden\">\n <div class=\"flex flex-col items-center gap-2\">\n <span class=\"text-xl font-medium\">Scroll Down</span>\n <span class=\"animate-bounce h-8 w-8 bg-primary text-primary-contrast rounded-full inline-flex items-center justify-center\">\n <i class=\"pi pi-arrow-down\"></i>\n </span>\n </div>\n <div class=\"h-[40rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-l-8 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-user !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Individual</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 animate-duration-1000\" leaveClass=\"animate-leave fade-out-0\" class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-users !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Team</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-r-8 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-surface shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <div class=\"rounded-full bg-primary text-primary-contrast w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-building !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Enterprise</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 slide-in-from-t-20 animate-duration-1000\"\n leaveClass=\"animate-leave fade-out-0\"\n class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Jenna Thompson</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 slide-in-from-b-20 animate-duration-1000\" class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/asiyajavayant.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Isabel Garcia</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 slide-in-from-t-20 animate-duration-1000\" class=\"flex flex-col border border-primary-200 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" shape=\"circle\" size=\"xlarge\" />\n <span class=\"text-2xl font-medium\">Xavier Mason</span>\n <span class=\"text-muted-color text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 spin-in-45 slide-in-from-t-12 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">850K</span>\n <span class=\"text-2xl font-bold\">Customers</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 zoom-in-50 slide-in-from-t-20 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">$1.5M</span>\n <span class=\"text-2xl font-bold\">Revenue</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div\n pAnimateOnScroll\n enterClass=\"animate-enter fade-in-10 spin-in-[-45deg] slide-in-from-t-16 animate-duration-1000\"\n class=\"flex flex-col bg-primary text-primary-contrast border-primary shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\"\n >\n <span class=\"bg-white/20 text-xl font-medium rounded-xl px-4 py-2\">140K</span>\n <span class=\"text-2xl font-bold\">Sales</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n <div class=\"h-[30rem]\"></div>\n <div class=\"flex flex-wrap justify-center gap-8\">\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-50 animate-duration-1000\" class=\"flex flex-col bg-purple-500 text-white border-purple-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-wifi !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Bandwidth</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-75 animate-duration-1000\" class=\"flex flex-col bg-teal-500 text-white border-teal-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-database !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Storage</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n <div pAnimateOnScroll enterClass=\"animate-enter fade-in-10 zoom-in-50 animate-duration-1000\" class=\"flex flex-col bg-indigo-500 text-white border-indigo-500 shadow-lg justify-center items-center max-w-80 rounded-2xl p-8 gap-4\">\n <div class=\"rounded-full border-2 border-white w-12 h-12 flex items-center justify-center\">\n <i class=\"pi pi-arrows-v !text-2xl\"></i>\n </div>\n <span class=\"text-2xl font-bold\">Requests</span>\n <span class=\"text-center\">Lorem ipsum dolor sit amet consectetur adipisicing elit.</span>\n </div>\n </div>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AnimateonscrollBasicDemo {}"
391
391
  }
392
392
  }
393
393
  ],
@@ -488,7 +488,7 @@
488
488
  "label": "advanced-chips-doc",
489
489
  "description": "This example demonstrates an advanced use case with templating, object handling, dropdown, and multiple mode.",
490
490
  "examples": {
491
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-autocomplete\n [(ngModel)]=\"selectedProducts\"\n [suggestions]=\"filteredProducts\"\n (completeMethod)=\"filterProducts($event)\"\n inputId=\"advanced-chips\"\n [multiple]=\"true\"\n [fluid]=\"true\"\n [typeahead]=\"false\"\n [dropdown]=\"true\"\n [optionLabel]=\"getProductLabel\"\n [optionValue]=\"getProductValue\"\n placeholder=\"Add products\"\n >\n <ng-template let-product #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ product.name }}</span>\n <span class=\"text-sm text-surface-500 dark:text-surface-400\">{{ product.category }}</span>\n </div>\n <span class=\"font-bold sm:ml-8\">\\${{ product.price }}</span>\n </div>\n </ng-template>\n <ng-template let-value #selecteditem>\n @if (value.price) {\n <div class=\"flex align-items-center gap-2\">\n <span class=\"font-semibold\">{{ value.name }}</span>\n <span class=\"text-primary text-sm font-bold\">\\${{ value.price }}</span>\n </div>\n } @else {\n <span class=\"font-semibold\">{{ value }}</span>\n }\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, FormsModule],\n providers: [ProductService]\n})\nexport class AutocompleteAdvancedChipsDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => this.products.set(data));\n }\n\n filterProducts(event: any) {\n let filtered: Product[] = [];\n let query = event.query;\n \n for (let i = 0; i < this.products().length; i++) {\n let product = this.products()[i];\n if (product.name?.toLowerCase().indexOf(query.toLowerCase()) == 0) {\n filtered.push(product);\n }\n }\n \n this.filteredProducts = filtered;\n }\n\n getProductLabel(product: any): string {\n if (typeof product === 'string') {\n return product;\n }\n return product?.name || '';\n }\n\n getProductValue(product: any): any {\n if (typeof product === 'string') {\n return { name: product, custom: true };\n }\n return {\n id: product.id,\n name: product.name,\n price: product.price,\n quantity: product.quantity\n };\n }\n}"
491
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-autocomplete\n [(ngModel)]=\"selectedProducts\"\n [suggestions]=\"filteredProducts\"\n (completeMethod)=\"filterProducts($event)\"\n inputId=\"advanced-chips\"\n [multiple]=\"true\"\n [fluid]=\"true\"\n [typeahead]=\"false\"\n [dropdown]=\"true\"\n [optionLabel]=\"getProductLabel\"\n [optionValue]=\"getProductValue\"\n placeholder=\"Add products\"\n >\n <ng-template let-product #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ product.name }}</span>\n <span class=\"text-sm text-surface-500 dark:text-surface-400\">{{ product.category }}</span>\n </div>\n <span class=\"font-bold sm:ml-8\">\\${{ product.price }}</span>\n </div>\n </ng-template>\n <ng-template let-value #selecteditem>\n @if (value.price) {\n <div class=\"flex align-items-center gap-2\">\n <span class=\"font-semibold\">{{ value.name }}</span>\n <span class=\"text-primary text-sm font-bold\">\\${{ value.price }}</span>\n </div>\n } @else {\n <span class=\"font-semibold\">{{ value }}</span>\n }\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, FormsModule],\n providers: [ProductService]\n})\nexport class AutocompleteAdvancedChipsDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => this.products.set(data));\n }\n\n filterProducts(event: any) {\n let filtered: Product[] = [];\n let query = event.query;\n \n for (let i = 0; i < this.products().length; i++) {\n let product = this.products()[i];\n if (product.name?.toLowerCase().indexOf(query.toLowerCase()) == 0) {\n filtered.push(product);\n }\n }\n \n this.filteredProducts = filtered;\n }\n\n getProductLabel(product: any): string {\n if (typeof product === 'string') {\n return product;\n }\n return product?.name || '';\n }\n\n getProductValue(product: any): any {\n if (typeof product === 'string') {\n return { name: product, custom: true };\n }\n return {\n id: product.id,\n name: product.name,\n price: product.price,\n quantity: product.quantity\n };\n }\n}"
492
492
  }
493
493
  },
494
494
  {
@@ -568,7 +568,7 @@
568
568
  "label": "Group",
569
569
  "description": "Option grouping is enabled when group property is set to true . group template is available to customize the option groups. All templates get the option instance as the default local template variable.",
570
570
  "examples": {
571
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { SelectItemGroup, FilterService } from '@exhaustive-ui/core/api';\n\ninterface AutoCompleteCompleteEvent {\n originalEvent: Event;\n query: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-autocomplete [(ngModel)]=\"selectedCity\" [group]=\"true\" [suggestions]=\"filteredGroups\" (completeMethod)=\"filterGroupedCity($event)\" placeholder=\"Hint: type 'a'\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, FormsModule]\n})\nexport class AutocompleteGroupDemo implements OnInit {\n selectedCity: any;\n filteredGroups: any[] | undefined;\n groupedCities: SelectItemGroup[] | undefined;\n\n ngOnInit() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n\n filterGroupedCity(event: AutoCompleteCompleteEvent) {\n let query = event.query;\n let filteredGroups = [];\n \n for (let optgroup of this.groupedCities as SelectItemGroup[]) {\n let filteredSubOptions = this.filterService.filter(optgroup.items, ['label'], query, 'contains');\n if (filteredSubOptions && filteredSubOptions.length) {\n filteredGroups.push({\n label: optgroup.label,\n value: optgroup.value,\n items: filteredSubOptions\n });\n }\n }\n \n this.filteredGroups = filteredGroups;\n }\n}"
571
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { SelectItemGroup, FilterService } from '@exhaustive-ui/core/api';\n\ninterface AutoCompleteCompleteEvent {\n originalEvent: Event;\n query: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-autocomplete [(ngModel)]=\"selectedCity\" [group]=\"true\" [suggestions]=\"filteredGroups\" (completeMethod)=\"filterGroupedCity($event)\" placeholder=\"Hint: type 'a'\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, FormsModule]\n})\nexport class AutocompleteGroupDemo implements OnInit {\n selectedCity: any;\n filteredGroups: any[] | undefined;\n groupedCities: SelectItemGroup[] | undefined;\n\n ngOnInit() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n\n filterGroupedCity(event: AutoCompleteCompleteEvent) {\n let query = event.query;\n let filteredGroups = [];\n \n for (let optgroup of this.groupedCities as SelectItemGroup[]) {\n let filteredSubOptions = this.filterService.filter(optgroup.items, ['label'], query, 'contains');\n if (filteredSubOptions && filteredSubOptions.length) {\n filteredGroups.push({\n label: optgroup.label,\n value: optgroup.value,\n items: filteredSubOptions\n });\n }\n }\n \n this.filteredGroups = filteredGroups;\n }\n}"
572
572
  }
573
573
  },
574
574
  {
@@ -624,7 +624,7 @@
624
624
  "label": "Template",
625
625
  "description": "AutoComplete offers multiple templates for customization through templating.",
626
626
  "examples": {
627
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CountryService } from '@/service/countryservice';\n\ninterface AutoCompleteCompleteEvent {\n originalEvent: Event;\n query: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-autocomplete [(ngModel)]=\"selectedCountryAdvanced\" [suggestions]=\"filteredCountries\" (completeMethod)=\"filterCountry($event)\" optionLabel=\"name\">\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"px-3 py-3\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, ButtonModule, FormsModule],\n providers: [CountryService]\n})\nexport class AutocompleteTemplateDemo implements OnInit {\n private countryService = inject(CountryService);\n countries: any[] | undefined;\n selectedCountryAdvanced: any[] | undefined;\n filteredCountries: any[] | undefined;\n\n ngOnInit() {\n this.countryService.getCountries().then((countries) => {\n this.countries = countries;\n });\n }\n\n filterCountry(event: AutoCompleteCompleteEvent) {\n let filtered: any[] = [];\n let query = event.query;\n \n for (let i = 0; i < (this.countries as any[]).length; i++) {\n let country = (this.countries as any[])[i];\n if (country.name.toLowerCase().indexOf(query.toLowerCase()) == 0) {\n filtered.push(country);\n }\n }\n this.filteredCountries = filtered;\n }\n}"
627
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AutoCompleteModule } from '@exhaustive-ui/core/autocomplete';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CountryService } from '@/service/countryservice';\n\ninterface AutoCompleteCompleteEvent {\n originalEvent: Event;\n query: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-autocomplete [(ngModel)]=\"selectedCountryAdvanced\" [suggestions]=\"filteredCountries\" (completeMethod)=\"filterCountry($event)\" optionLabel=\"name\">\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"px-3 py-3\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-autocomplete>\n </div>\n `,\n standalone: true,\n imports: [AutoCompleteModule, ButtonModule, FormsModule],\n providers: [CountryService]\n})\nexport class AutocompleteTemplateDemo implements OnInit {\n private countryService = inject(CountryService);\n countries: any[] | undefined;\n selectedCountryAdvanced: any[] | undefined;\n filteredCountries: any[] | undefined;\n\n ngOnInit() {\n this.countryService.getCountries().then((countries) => {\n this.countries = countries;\n });\n }\n\n filterCountry(event: AutoCompleteCompleteEvent) {\n let filtered: any[] = [];\n let query = event.query;\n \n for (let i = 0; i < (this.countries as any[]).length; i++) {\n let country = (this.countries as any[])[i];\n if (country.name.toLowerCase().indexOf(query.toLowerCase()) == 0) {\n filtered.push(country);\n }\n }\n this.filteredCountries = filtered;\n }\n}"
628
628
  }
629
629
  },
630
630
  {
@@ -1912,7 +1912,7 @@
1912
1912
  "label": "AvatarGroup",
1913
1913
  "description": "Grouping is available by wrapping multiple Avatar components inside an AvatarGroup .",
1914
1914
  "examples": {
1915
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-avatar-group>\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/ionibowcher.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/xuxuefeng.png\" size=\"large\" shape=\"circle\" />\n <p-avatar label=\"+2\" shape=\"circle\" size=\"large\" />\n </p-avatar-group>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarAvatargroupDemo {}"
1915
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-avatar-group>\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/asiyajavayant.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/ionibowcher.png\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/xuxuefeng.png\" size=\"large\" shape=\"circle\" />\n <p-avatar label=\"+2\" shape=\"circle\" size=\"large\" />\n </p-avatar-group>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarAvatargroupDemo {}"
1916
1916
  }
1917
1917
  },
1918
1918
  {
@@ -1936,7 +1936,7 @@
1936
1936
  "label": "Badge",
1937
1937
  "description": "A badge can be added to an Avatar with the Badge directive.",
1938
1938
  "examples": {
1939
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" pBadge value=\"4\" severity=\"danger\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarBadgeDemo {}"
1939
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" pBadge value=\"4\" severity=\"danger\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarBadgeDemo {}"
1940
1940
  }
1941
1941
  },
1942
1942
  {
@@ -1952,7 +1952,7 @@
1952
1952
  "label": "Image",
1953
1953
  "description": "Use the image property to display an image as an Avatar.",
1954
1954
  "examples": {
1955
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card\">\n <div class=\"flex flex-wrap gap-8\">\n <div class=\"flex-auto\">\n <h5>Image</h5>\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" class=\"mr-2\" size=\"xlarge\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png\" class=\"mr-2\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n </div>\n <div class=\"flex-auto\">\n <h5>Badge</h5>\n <p-overlay-badge value=\"4\" severity=\"danger\" class=\"inline-flex\">\n <p-avatar class=\"p-overlay-badge\" image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/walter.jpg\" size=\"xlarge\" />\n </p-overlay-badge>\n </div>\n <div class=\"flex-auto\">\n <h5>Gravatar</h5>\n <p-avatar image=\"https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp\" class=\"flex items-center justify-center mr-2\" size=\"xlarge\" />\n </div>\n </div>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarImageDemo {}"
1955
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\n\n@Component({\n template: `\n <div class=\"card\">\n <div class=\"flex flex-wrap gap-8\">\n <div class=\"flex-auto\">\n <h5>Image</h5>\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" class=\"mr-2\" size=\"xlarge\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/asiyajavayant.png\" class=\"mr-2\" size=\"large\" shape=\"circle\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n </div>\n <div class=\"flex-auto\">\n <h5>Badge</h5>\n <p-overlay-badge value=\"4\" severity=\"danger\" class=\"inline-flex\">\n <p-avatar class=\"p-overlay-badge\" image=\"https://exhaustive-ui.com/demo/avatar/walter.jpg\" size=\"xlarge\" />\n </p-overlay-badge>\n </div>\n <div class=\"flex-auto\">\n <h5>Gravatar</h5>\n <p-avatar image=\"https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp\" class=\"flex items-center justify-center mr-2\" size=\"xlarge\" />\n </div>\n </div>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule]\n})\nexport class AvatarImageDemo {}"
1956
1956
  }
1957
1957
  },
1958
1958
  {
@@ -4319,7 +4319,7 @@
4319
4319
  "label": "Advanced",
4320
4320
  "description": "Card content can be customized further with subHeader , header and footer properties.",
4321
4321
  "examples": {
4322
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CardModule } from '@exhaustive-ui/core/card';\n\n@Component({\n template: `\n <div class=\"mb-4 p-8 flex items-center justify-center\">\n <p-card [style]=\"{ width: '25rem', overflow: 'hidden' }\">\n <ng-template #header>\n <img alt=\"Card\" class=\"w-full\" src=\"https://exhaustive-ui.e-xiste.com/demo/card-ng.jpg\" />\n </ng-template>\n <ng-template #title> Advanced Card </ng-template>\n <ng-template #subtitle> Card subtitle </ng-template>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque\n quas!\n </p>\n <ng-template #footer>\n <div class=\"flex gap-4 mt-1\">\n <p-button label=\"Cancel\" severity=\"secondary\" class=\"w-full\" [outlined]=\"true\" styleClass=\"w-full\" />\n <p-button label=\"Save\" class=\"w-full\" styleClass=\"w-full\" />\n </div>\n </ng-template>\n </p-card>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CardModule]\n})\nexport class CardAdvancedDemo {}"
4322
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CardModule } from '@exhaustive-ui/core/card';\n\n@Component({\n template: `\n <div class=\"mb-4 p-8 flex items-center justify-center\">\n <p-card [style]=\"{ width: '25rem', overflow: 'hidden' }\">\n <ng-template #header>\n <img alt=\"Card\" class=\"w-full\" src=\"https://exhaustive-ui.com/demo/card-ng.jpg\" />\n </ng-template>\n <ng-template #title> Advanced Card </ng-template>\n <ng-template #subtitle> Card subtitle </ng-template>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate neque\n quas!\n </p>\n <ng-template #footer>\n <div class=\"flex gap-4 mt-1\">\n <p-button label=\"Cancel\" severity=\"secondary\" class=\"w-full\" [outlined]=\"true\" styleClass=\"w-full\" />\n <p-button label=\"Save\" class=\"w-full\" styleClass=\"w-full\" />\n </div>\n </ng-template>\n </p-card>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CardModule]\n})\nexport class CardAdvancedDemo {}"
4323
4323
  }
4324
4324
  },
4325
4325
  {
@@ -4553,7 +4553,7 @@
4553
4553
  "label": "Basic",
4554
4554
  "description": "Carousel requires a collection of items as its value along with a template to render each item.",
4555
4555
  "examples": {
4556
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"3\" [circular]=\"false\" [responsiveOptions]=\"responsiveOptions\">\n <ng-template let-product #item>\n <div class=\"border border-surface rounded-border m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselBasicDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => {\n this.products.set(data.slice(0, 9));\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4556
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"3\" [circular]=\"false\" [responsiveOptions]=\"responsiveOptions\">\n <ng-template let-product #item>\n <div class=\"border border-surface rounded-border m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselBasicDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => {\n this.products.set(data.slice(0, 9));\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4557
4557
  }
4558
4558
  },
4559
4559
  {
@@ -4561,7 +4561,7 @@
4561
4561
  "label": "Circular",
4562
4562
  "description": "When autoplayInterval is defined in milliseconds, items are scrolled automatically. In addition, for infinite scrolling circular property needs to be added which is enabled automatically in auto play mode.",
4563
4563
  "examples": {
4564
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"1\" [circular]=\"true\" [responsiveOptions]=\"responsiveOptions\" autoplayInterval=\"3000\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselCircularDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => {\n this.products.set(data.slice(0, 9));\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4564
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"1\" [circular]=\"true\" [responsiveOptions]=\"responsiveOptions\" autoplayInterval=\"3000\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselCircularDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((data) => {\n this.products.set(data.slice(0, 9));\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4565
4565
  }
4566
4566
  },
4567
4567
  {
@@ -4569,7 +4569,7 @@
4569
4569
  "label": "Responsive",
4570
4570
  "description": "Carousel supports specific configuration per screen size with the responsiveOptions property that takes an array of objects where each object defines the max-width breakpoint , numVisible for the number of items items per page and numScroll for number of items to scroll. When responsiveOptions is defined, the numScroll and numVisible properties of the Carousel are used as default when there is breakpoint that applies.",
4571
4571
  "examples": {
4572
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"1\" [responsiveOptions]=\"responsiveOptions\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselResponsiveDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4572
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"3\" [numScroll]=\"1\" [responsiveOptions]=\"responsiveOptions\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded-border\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselResponsiveDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n responsiveOptions: any[] | undefined;\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n this.responsiveOptions = [\n {\n breakpoint: '1400px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '1199px',\n numVisible: 3,\n numScroll: 1\n },\n {\n breakpoint: '767px',\n numVisible: 2,\n numScroll: 1\n },\n {\n breakpoint: '575px',\n numVisible: 1,\n numScroll: 1\n }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4573
4573
  }
4574
4574
  },
4575
4575
  {
@@ -4577,7 +4577,7 @@
4577
4577
  "label": "Vertical",
4578
4578
  "description": "To create a vertical Carousel, orientation needs to be set to vertical along with a verticalViewPortHeight .",
4579
4579
  "examples": {
4580
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"1\" [numScroll]=\"1\" orientation=\"vertical\" verticalViewPortHeight=\"330px\" contentClass=\"flex items-center\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselVerticalDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4580
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CarouselModule } from '@exhaustive-ui/core/carousel';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-carousel [value]=\"products()\" [numVisible]=\"1\" [numScroll]=\"1\" orientation=\"vertical\" verticalViewPortHeight=\"330px\" contentClass=\"flex items-center\">\n <ng-template let-product #item>\n <div class=\"border border-surface-200 dark:border-surface-700 rounded m-2 p-4\">\n <div class=\"mb-4\">\n <div class=\"relative mx-auto\">\n <img src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"w-full rounded\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" class=\"absolute dark:!bg-surface-900\" [ngStyle]=\"{ 'left.px': 5, 'top.px': 5 }\" />\n </div>\n </div>\n <div class=\"mb-4 font-medium\">{{ product.name }}</div>\n <div class=\"flex justify-between items-center\">\n <div class=\"mt-0 font-semibold text-xl\">{{ '$' + product.price }}</div>\n <span>\n <p-button icon=\"pi pi-heart\" severity=\"secondary\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" styleClass=\"ml-2\" />\n </span>\n </div>\n </div>\n </ng-template>\n </p-carousel>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CarouselModule, TagModule],\n providers: [ProductService]\n})\nexport class CarouselVerticalDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
4581
4581
  }
4582
4582
  }
4583
4583
  ],
@@ -5091,7 +5091,7 @@
5091
5091
  "label": "Template",
5092
5092
  "description": "Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter. In addition value , dropdownicon , loadingicon , and optiongroupicon slots are provided for further customization.",
5093
5093
  "examples": {
5094
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-cascadeselect [(ngModel)]=\"selectedCity\" [options]=\"countries\" optionLabel=\"cname\" optionGroupLabel=\"name\" [optionGroupChildren]=\"['states', 'cities']\" [style]=\"{ minWidth: '14rem' }\" placeholder=\"Select a City\">\n <ng-template #option let-option>\n <div class=\"flex items-center\">\n <img *ngIf=\"option.states\" src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + option.code.toLowerCase()\" style=\"width: 18px\" />\n <i class=\"pi pi-compass mr-2\" *ngIf=\"option.cities\"></i>\n <i class=\"pi pi-map-marker mr-2\" *ngIf=\"option.cname\"></i>\n <span>{{ option.cname || option.name }}</span>\n </div>\n </ng-template>\n <ng-template #triggericon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"px-3 py-1\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-cascadeselect>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CascadeSelectModule, FormsModule]\n})\nexport class CascadeselectTemplateDemo implements OnInit {\n countries: any[] | undefined;\n selectedCity: any;\n\n ngOnInit() {\n this.countries = [\n {\n name: 'Australia',\n code: 'AU',\n states: [\n {\n name: 'New South Wales',\n cities: [\n { cname: 'Sydney', code: 'A-SY' },\n { cname: 'Newcastle', code: 'A-NE' },\n { cname: 'Wollongong', code: 'A-WO' }\n ]\n },\n {\n name: 'Queensland',\n cities: [\n { cname: 'Brisbane', code: 'A-BR' },\n { cname: 'Townsville', code: 'A-TO' }\n ]\n }\n ]\n },\n {\n name: 'Canada',\n code: 'CA',\n states: [\n {\n name: 'Quebec',\n cities: [\n { cname: 'Montreal', code: 'C-MO' },\n { cname: 'Quebec City', code: 'C-QU' }\n ]\n },\n {\n name: 'Ontario',\n cities: [\n { cname: 'Ottawa', code: 'C-OT' },\n { cname: 'Toronto', code: 'C-TO' }\n ]\n }\n ]\n },\n {\n name: 'United States',\n code: 'US',\n states: [\n {\n name: 'California',\n cities: [\n { cname: 'Los Angeles', code: 'US-LA' },\n { cname: 'San Diego', code: 'US-SD' },\n { cname: 'San Francisco', code: 'US-SF' }\n ]\n },\n {\n name: 'Florida',\n cities: [\n { cname: 'Jacksonville', code: 'US-JA' },\n { cname: 'Miami', code: 'US-MI' },\n { cname: 'Tampa', code: 'US-TA' },\n { cname: 'Orlando', code: 'US-OR' }\n ]\n },\n {\n name: 'Texas',\n cities: [\n { cname: 'Austin', code: 'US-AU' },\n { cname: 'Dallas', code: 'US-DA' },\n { cname: 'Houston', code: 'US-HO' }\n ]\n }\n ]\n }\n ];\n }\n}"
5094
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CascadeSelectModule } from '@exhaustive-ui/core/cascadeselect';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-cascadeselect [(ngModel)]=\"selectedCity\" [options]=\"countries\" optionLabel=\"cname\" optionGroupLabel=\"name\" [optionGroupChildren]=\"['states', 'cities']\" [style]=\"{ minWidth: '14rem' }\" placeholder=\"Select a City\">\n <ng-template #option let-option>\n <div class=\"flex items-center\">\n <img *ngIf=\"option.states\" src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + option.code.toLowerCase()\" style=\"width: 18px\" />\n <i class=\"pi pi-compass mr-2\" *ngIf=\"option.cities\"></i>\n <i class=\"pi pi-map-marker mr-2\" *ngIf=\"option.cname\"></i>\n <span>{{ option.cname || option.name }}</span>\n </div>\n </ng-template>\n <ng-template #triggericon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"px-3 py-1\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-cascadeselect>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CascadeSelectModule, FormsModule]\n})\nexport class CascadeselectTemplateDemo implements OnInit {\n countries: any[] | undefined;\n selectedCity: any;\n\n ngOnInit() {\n this.countries = [\n {\n name: 'Australia',\n code: 'AU',\n states: [\n {\n name: 'New South Wales',\n cities: [\n { cname: 'Sydney', code: 'A-SY' },\n { cname: 'Newcastle', code: 'A-NE' },\n { cname: 'Wollongong', code: 'A-WO' }\n ]\n },\n {\n name: 'Queensland',\n cities: [\n { cname: 'Brisbane', code: 'A-BR' },\n { cname: 'Townsville', code: 'A-TO' }\n ]\n }\n ]\n },\n {\n name: 'Canada',\n code: 'CA',\n states: [\n {\n name: 'Quebec',\n cities: [\n { cname: 'Montreal', code: 'C-MO' },\n { cname: 'Quebec City', code: 'C-QU' }\n ]\n },\n {\n name: 'Ontario',\n cities: [\n { cname: 'Ottawa', code: 'C-OT' },\n { cname: 'Toronto', code: 'C-TO' }\n ]\n }\n ]\n },\n {\n name: 'United States',\n code: 'US',\n states: [\n {\n name: 'California',\n cities: [\n { cname: 'Los Angeles', code: 'US-LA' },\n { cname: 'San Diego', code: 'US-SD' },\n { cname: 'San Francisco', code: 'US-SF' }\n ]\n },\n {\n name: 'Florida',\n cities: [\n { cname: 'Jacksonville', code: 'US-JA' },\n { cname: 'Miami', code: 'US-MI' },\n { cname: 'Tampa', code: 'US-TA' },\n { cname: 'Orlando', code: 'US-OR' }\n ]\n },\n {\n name: 'Texas',\n cities: [\n { cname: 'Austin', code: 'US-AU' },\n { cname: 'Dallas', code: 'US-DA' },\n { cname: 'Houston', code: 'US-HO' }\n ]\n }\n ]\n }\n ];\n }\n}"
5095
5095
  }
5096
5096
  },
5097
5097
  {
@@ -6774,7 +6774,7 @@
6774
6774
  "label": "Image",
6775
6775
  "description": "The image property is used to display an image like an avatar.",
6776
6776
  "examples": {
6777
- "typescript": "import { Component } from '@angular/core';\nimport { ChipModule } from '@exhaustive-ui/core/chip';\n\n@Component({\n template: `\n <div class=\"card flex items-center gap-2 flex-wrap\">\n <p-chip label=\"Amy Elsner\" image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" alt=\"Avatar image\" />\n <p-chip label=\"Asiya Javayant\" image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png\" alt=\"Avatar image\" />\n <p-chip label=\"Onyama Limba\" image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" alt=\"Avatar image\" />\n <p-chip label=\"Xuxue Feng\" image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/xuxuefeng.png\" alt=\"Avatar image\" [removable]=\"true\" />\n </div>\n `,\n standalone: true,\n imports: [ChipModule]\n})\nexport class ChipImageDemo {}"
6777
+ "typescript": "import { Component } from '@angular/core';\nimport { ChipModule } from '@exhaustive-ui/core/chip';\n\n@Component({\n template: `\n <div class=\"card flex items-center gap-2 flex-wrap\">\n <p-chip label=\"Amy Elsner\" image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" alt=\"Avatar image\" />\n <p-chip label=\"Asiya Javayant\" image=\"https://exhaustive-ui.com/demo/avatar/asiyajavayant.png\" alt=\"Avatar image\" />\n <p-chip label=\"Onyama Limba\" image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" alt=\"Avatar image\" />\n <p-chip label=\"Xuxue Feng\" image=\"https://exhaustive-ui.com/demo/avatar/xuxuefeng.png\" alt=\"Avatar image\" [removable]=\"true\" />\n </div>\n `,\n standalone: true,\n imports: [ChipModule]\n})\nexport class ChipImageDemo {}"
6778
6778
  }
6779
6779
  },
6780
6780
  {
@@ -8206,7 +8206,7 @@
8206
8206
  "label": "Basic",
8207
8207
  "description": "ContextMenu can be attached to a particular element whose local template variable name is defined using the target property.",
8208
8208
  "examples": {
8209
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { MenuItem } from '@exhaustive-ui/core/api';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <img #img src=\"https://exhaustive-ui.e-xiste.com/demo/nature/nature2.jpg\" alt=\"Logo\" aria-haspopup=\"true\" class=\"w-full md:w-[30rem] rounded shadow-lg\" />\n <p-contextmenu [target]=\"img\" [model]=\"items\" />\n </div>\n `,\n standalone: true,\n imports: [ContextMenuModule]\n})\nexport class ContextmenuBasicDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n { label: 'Copy', icon: 'pi pi-copy' },\n { label: 'Rename', icon: 'pi pi-file-edit' }\n ];\n }\n}"
8209
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { MenuItem } from '@exhaustive-ui/core/api';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <img #img src=\"https://exhaustive-ui.com/demo/nature/nature2.jpg\" alt=\"Logo\" aria-haspopup=\"true\" class=\"w-full md:w-[30rem] rounded shadow-lg\" />\n <p-contextmenu [target]=\"img\" [model]=\"items\" />\n </div>\n `,\n standalone: true,\n imports: [ContextMenuModule]\n})\nexport class ContextmenuBasicDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n { label: 'Copy', icon: 'pi pi-copy' },\n { label: 'Rename', icon: 'pi pi-file-edit' }\n ];\n }\n}"
8210
8210
  }
8211
8211
  },
8212
8212
  {
@@ -8214,7 +8214,7 @@
8214
8214
  "label": "Command",
8215
8215
  "description": "The function to invoke when an item is clicked is defined using the command property.",
8216
8216
  "examples": {
8217
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MenuItem, MessageService } from '@exhaustive-ui/core/api';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\ninterface Users {\n id: number;\n name: string;\n image: string;\n role: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex sm:justify-center\">\n <p-toast />\n <ul class=\"m-0 list-none border border-surface rounded p-4 flex flex-col gap-2 w-full sm:w-96\">\n <li\n *ngFor=\"let user of users\"\n class=\"p-2 hover:bg-emphasis rounded border border-transparent transition-all duration-200 flex items-center justify-content-between\"\n [ngClass]=\"{ 'border-primary': selectedId === user.id }\"\n (contextmenu)=\"onContextMenu($event, user)\"\n >\n <div class=\"flex flex-1 items-center gap-2\">\n <img class=\"w-8 h-8\" [alt]=\"user.name\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/avatar/' + user.image\" />\n <span class=\"font-bold\">{{ user.name }}</span>\n </div>\n <p-tag [value]=\"user.role\" [severity]=\"getBadge(user)\" />\n </li>\n </ul>\n <p-contextmenu #cm [model]=\"items\" (onHide)=\"onHide()\" />\n </div>\n `,\n standalone: true,\n imports: [ContextMenuModule, TagModule, ToastModule],\n providers: [MessageService]\n})\nexport class ContextmenuCommandDemo implements OnInit {\n private messageService = inject(MessageService);\n items: MenuItem[] | undefined;\n selectedUser: Users;\n users: Users[];\n\n ngOnInit() {\n this.users = [\n { id: 0, name: 'Amy Elsner', image: 'amyelsner.png', role: 'Admin' },\n { id: 1, name: 'Anna Fali', image: 'annafali.png', role: 'Member' },\n { id: 2, name: 'Asiya Javayant', image: 'asiyajavayant.png', role: 'Member' },\n { id: 3, name: 'Bernardo Dominic', image: 'bernardodominic.png', role: 'Guest' },\n { id: 4, name: 'Elwin Sharvill', image: 'elwinsharvill.png', role: 'Member' }\n ];\n this.items = [\n {\n label: 'Roles',\n icon: 'pi pi-users',\n items: [\n {\n label: 'Admin',\n command: () => {\n this.selectedUser.role = 'Admin';\n }\n },\n {\n label: 'Member',\n command: () => {\n this.selectedUser.role = 'Member';\n }\n },\n {\n label: 'Guest',\n command: () => {\n this.selectedUser.role = 'Guest';\n }\n }\n ]\n },\n {\n label: 'Invite',\n icon: 'pi pi-user-plus',\n command: () => {\n this.messageService.add({\n severity: 'success',\n summary: 'Success',\n detail: 'Invitation sent!',\n life: 3000\n });\n }\n }\n ];\n }\n\n getBadge(user) {\n if (user.role === 'Member') return 'info';\n else if (user.role === 'Guest') return 'warn';\n else return null;\n }\n\n onContextMenu(event, user) {\n this.selectedUser = user;\n this.cm.show(event);\n }\n\n onHide() {\n this.selectedUser = null;\n }\n}"
8217
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MenuItem, MessageService } from '@exhaustive-ui/core/api';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\ninterface Users {\n id: number;\n name: string;\n image: string;\n role: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex sm:justify-center\">\n <p-toast />\n <ul class=\"m-0 list-none border border-surface rounded p-4 flex flex-col gap-2 w-full sm:w-96\">\n <li\n *ngFor=\"let user of users\"\n class=\"p-2 hover:bg-emphasis rounded border border-transparent transition-all duration-200 flex items-center justify-content-between\"\n [ngClass]=\"{ 'border-primary': selectedId === user.id }\"\n (contextmenu)=\"onContextMenu($event, user)\"\n >\n <div class=\"flex flex-1 items-center gap-2\">\n <img class=\"w-8 h-8\" [alt]=\"user.name\" [src]=\"'https://exhaustive-ui.com/demo/avatar/' + user.image\" />\n <span class=\"font-bold\">{{ user.name }}</span>\n </div>\n <p-tag [value]=\"user.role\" [severity]=\"getBadge(user)\" />\n </li>\n </ul>\n <p-contextmenu #cm [model]=\"items\" (onHide)=\"onHide()\" />\n </div>\n `,\n standalone: true,\n imports: [ContextMenuModule, TagModule, ToastModule],\n providers: [MessageService]\n})\nexport class ContextmenuCommandDemo implements OnInit {\n private messageService = inject(MessageService);\n items: MenuItem[] | undefined;\n selectedUser: Users;\n users: Users[];\n\n ngOnInit() {\n this.users = [\n { id: 0, name: 'Amy Elsner', image: 'amyelsner.png', role: 'Admin' },\n { id: 1, name: 'Anna Fali', image: 'annafali.png', role: 'Member' },\n { id: 2, name: 'Asiya Javayant', image: 'asiyajavayant.png', role: 'Member' },\n { id: 3, name: 'Bernardo Dominic', image: 'bernardodominic.png', role: 'Guest' },\n { id: 4, name: 'Elwin Sharvill', image: 'elwinsharvill.png', role: 'Member' }\n ];\n this.items = [\n {\n label: 'Roles',\n icon: 'pi pi-users',\n items: [\n {\n label: 'Admin',\n command: () => {\n this.selectedUser.role = 'Admin';\n }\n },\n {\n label: 'Member',\n command: () => {\n this.selectedUser.role = 'Member';\n }\n },\n {\n label: 'Guest',\n command: () => {\n this.selectedUser.role = 'Guest';\n }\n }\n ]\n },\n {\n label: 'Invite',\n icon: 'pi pi-user-plus',\n command: () => {\n this.messageService.add({\n severity: 'success',\n summary: 'Success',\n detail: 'Invitation sent!',\n life: 3000\n });\n }\n }\n ];\n }\n\n getBadge(user) {\n if (user.role === 'Member') return 'info';\n else if (user.role === 'Guest') return 'warn';\n else return null;\n }\n\n onContextMenu(event, user) {\n this.selectedUser = user;\n this.cm.show(event);\n }\n\n onHide() {\n this.selectedUser = null;\n }\n}"
8218
8218
  }
8219
8219
  },
8220
8220
  {
@@ -8244,7 +8244,7 @@
8244
8244
  "label": "Template",
8245
8245
  "description": "ContextMenu offers item customization with the item template that receives the menuitem instance from the model as a parameter.",
8246
8246
  "examples": {
8247
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\n@Component({\n template: `\n <div class=\"card flex md:justify-center\">\n <ul class=\"m-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]\">\n <li\n *ngFor=\"let product of data\"\n class=\"p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200\"\n [ngClass]=\"{ 'border-primary': selectedId === product.id }\"\n (contextmenu)=\"onContextMenu($event)\"\n >\n <div class=\"flex flex-wrap p-2 items-center gap-4\">\n <img class=\"w-16 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" />\n <div class=\"flex-1 flex flex-col gap-1\">\n <span class=\"font-bold\">{{ product.name }}</span>\n <div class=\"flex items-center gap-2\">\n <i class=\"pi pi-tag text-sm\"></i>\n <span>{{ product.category }}</span>\n </div>\n </div>\n <span class=\"font-bold ml-8\">&#36;{{ product.price }}</span>\n </div>\n </li>\n </ul>\n <p-contextmenu #cm [model]=\"items\" (onHide)=\"onHide()\">\n <ng-template #item let-item>\n <a pRipple class=\"flex items-center px-4 py-3 cursor-pointer\">\n <span [class]=\"item.icon\"></span>\n <span class=\"ms-2\">{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" class=\"ms-auto\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n <i *ngIf=\"item.items\" class=\"pi pi-angle-right ms-auto rotate-90 lg:rotate-0\"></i>\n </a>\n </ng-template>\n </p-contextmenu>\n </div>\n `,\n standalone: true,\n imports: [BadgeModule, ContextMenuModule, RippleModule]\n})\nexport class ContextmenuTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n selectedId!: string;\n data: any[];\n\n ngOnInit() {\n this.items = [\n {\n label: 'Favorite',\n icon: 'pi pi-star',\n shortcut: '⌘+D'\n },\n {\n label: 'Add',\n icon: 'pi pi-shopping-cart',\n shortcut: '⌘+A'\n },\n {\n separator: true\n },\n {\n label: 'Share',\n icon: 'pi pi-share-alt',\n items: [\n {\n label: 'Whatsapp',\n icon: 'pi pi-whatsapp',\n badge: '2'\n },\n {\n label: 'Instagram',\n icon: 'pi pi-instagram',\n badge: '3'\n }\n ]\n }\n ];\n }\n\n onContextMenu(event) {\n this.cm.show(event);\n }\n\n onHide() {\n this.selectedId = undefined;\n }\n}"
8247
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { ContextMenu, ContextMenuModule } from '@exhaustive-ui/core/contextmenu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\nimport { ContextMenu } from '@exhaustive-ui/core/contextmenu';\n\n@Component({\n template: `\n <div class=\"card flex md:justify-center\">\n <ul class=\"m-0 list-none border border-surface-200 dark:border-surface-700 rounded p-4 flex flex-col gap-2 w-full md:w-[30rem]\">\n <li\n *ngFor=\"let product of data\"\n class=\"p-2 hover:bg-surface-100 dark:hover:bg-surface-800 rounded border border-transparent transition-all transition-duration-200\"\n [ngClass]=\"{ 'border-primary': selectedId === product.id }\"\n (contextmenu)=\"onContextMenu($event)\"\n >\n <div class=\"flex flex-wrap p-2 items-center gap-4\">\n <img class=\"w-16 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" />\n <div class=\"flex-1 flex flex-col gap-1\">\n <span class=\"font-bold\">{{ product.name }}</span>\n <div class=\"flex items-center gap-2\">\n <i class=\"pi pi-tag text-sm\"></i>\n <span>{{ product.category }}</span>\n </div>\n </div>\n <span class=\"font-bold ml-8\">&#36;{{ product.price }}</span>\n </div>\n </li>\n </ul>\n <p-contextmenu #cm [model]=\"items\" (onHide)=\"onHide()\">\n <ng-template #item let-item>\n <a pRipple class=\"flex items-center px-4 py-3 cursor-pointer\">\n <span [class]=\"item.icon\"></span>\n <span class=\"ms-2\">{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" class=\"ms-auto\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n <i *ngIf=\"item.items\" class=\"pi pi-angle-right ms-auto rotate-90 lg:rotate-0\"></i>\n </a>\n </ng-template>\n </p-contextmenu>\n </div>\n `,\n standalone: true,\n imports: [BadgeModule, ContextMenuModule, RippleModule]\n})\nexport class ContextmenuTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n selectedId!: string;\n data: any[];\n\n ngOnInit() {\n this.items = [\n {\n label: 'Favorite',\n icon: 'pi pi-star',\n shortcut: '⌘+D'\n },\n {\n label: 'Add',\n icon: 'pi pi-shopping-cart',\n shortcut: '⌘+A'\n },\n {\n separator: true\n },\n {\n label: 'Share',\n icon: 'pi pi-share-alt',\n items: [\n {\n label: 'Whatsapp',\n icon: 'pi pi-whatsapp',\n badge: '2'\n },\n {\n label: 'Instagram',\n icon: 'pi pi-instagram',\n badge: '3'\n }\n ]\n }\n ];\n }\n\n onContextMenu(event) {\n this.cm.show(event);\n }\n\n onHide() {\n this.selectedId = undefined;\n }\n}"
8248
8248
  }
8249
8249
  }
8250
8250
  ],
@@ -8663,7 +8663,7 @@
8663
8663
  "label": "Basic",
8664
8664
  "description": "DataView requires a value to display along with a list template that receives an object in the collection to return content.",
8665
8665
  "examples": {
8666
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\">\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, TagModule],\n providers: [ProductService]\n})\nexport class DataviewBasicDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n productService = inject(ProductService);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n const d = data.slice(0, 5);\n this.products.set([...d]);\n });\n }\n\n getSeverity(product: Product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
8666
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\">\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, TagModule],\n providers: [ProductService]\n})\nexport class DataviewBasicDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n productService = inject(ProductService);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n const d = data.slice(0, 5);\n this.products.set([...d]);\n });\n }\n\n getSeverity(product: Product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
8667
8667
  }
8668
8668
  },
8669
8669
  {
@@ -8671,7 +8671,7 @@
8671
8671
  "label": "Layout",
8672
8672
  "description": "DataView supports list and grid display modes defined with the layout property. The grid mode is not built-in for flexibility purposes and requires a library with CSS grid features like Tailwind.",
8673
8673
  "examples": {
8674
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [layout]=\"layout\">\n <ng-template #header>\n <div class=\"flex justify-end\">\n <p-selectbutton [(ngModel)]=\"layout\" [options]=\"options\" [allowEmpty]=\"false\">\n <ng-template #item let-item>\n <i class=\"pi \" [ngClass]=\"{ 'pi-bars': item === 'list', 'pi-table': item === 'grid' }\"></i>\n </ng-template>\n </p-selectbutton>\n </div>\n </ng-template>\n <ng-template #list let-items>\n <div *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded w-full\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px\">\n <div class=\"bg-surface-0 flex items-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold\">{{ item.price | currency: 'USD' }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <button pButton icon=\"pi pi-heart\" [outlined]=\"true\"></button>\n <button pButton icon=\"pi pi-shopping-cart\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" class=\"flex-auto md:flex-initial whitespace-nowrap\"></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #grid let-items>\n <div class=\"grid grid-cols-12 gap-4\">\n <div *ngFor=\"let product of items\" class=\"col-span-12 sm:col-span-6 md:col-span-4 xl:col-span-6 p-2\">\n <div class=\"p-6 border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-900 rounded flex flex-col\">\n <div class=\"bg-surface-50 flex justify-center rounded p-4\">\n <div class=\"relative mx-auto\">\n <img class=\"rounded w-full\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.name\" style=\"max-width: 300px\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n </div>\n <div class=\"pt-6\">\n <div class=\"flex flex-row justify-between products-start gap-2\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ product.category }}</span>\n <div class=\"text-lg font-medium mt-1\">{{ product.name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px; height:100%\">\n <div class=\"bg-surface-0 flex products-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ product.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col gap-6 mt-6\">\n <span class=\"text-2xl font-semibold\">{{ product.price | currency: 'USD' }}</span>\n <div class=\"flex gap-2\">\n <button pButton icon=\"pi pi-shopping-cart\" label=\"Buy Now\" [disabled]=\"product.inventoryStatus === 'OUTOFSTOCK'\" class=\"flex-auto whitespace-nowrap\"></button>\n <button pButton icon=\"pi pi-heart\" outlined></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [DataViewModule, SelectButtonModule, TagModule, ButtonModule, FormsModule],\n providers: [ProductService]\n})\nexport class DataviewLayoutDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n options: any[] = ['list', 'grid'];\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products.set([...data.slice(0, 12)]);\n });\n }\n}"
8674
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [layout]=\"layout\">\n <ng-template #header>\n <div class=\"flex justify-end\">\n <p-selectbutton [(ngModel)]=\"layout\" [options]=\"options\" [allowEmpty]=\"false\">\n <ng-template #item let-item>\n <i class=\"pi \" [ngClass]=\"{ 'pi-bars': item === 'list', 'pi-table': item === 'grid' }\"></i>\n </ng-template>\n </p-selectbutton>\n </div>\n </ng-template>\n <ng-template #list let-items>\n <div *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded w-full\" [src]=\"'https://exhaustive-ui.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px\">\n <div class=\"bg-surface-0 flex items-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold\">{{ item.price | currency: 'USD' }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <button pButton icon=\"pi pi-heart\" [outlined]=\"true\"></button>\n <button pButton icon=\"pi pi-shopping-cart\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" class=\"flex-auto md:flex-initial whitespace-nowrap\"></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #grid let-items>\n <div class=\"grid grid-cols-12 gap-4\">\n <div *ngFor=\"let product of items\" class=\"col-span-12 sm:col-span-6 md:col-span-4 xl:col-span-6 p-2\">\n <div class=\"p-6 border border-surface-200 dark:border-surface-700 bg-surface-0 dark:bg-surface-900 rounded flex flex-col\">\n <div class=\"bg-surface-50 flex justify-center rounded p-4\">\n <div class=\"relative mx-auto\">\n <img class=\"rounded w-full\" [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.name\" style=\"max-width: 300px\" />\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n </div>\n <div class=\"pt-6\">\n <div class=\"flex flex-row justify-between products-start gap-2\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ product.category }}</span>\n <div class=\"text-lg font-medium mt-1\">{{ product.name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px; height:100%\">\n <div class=\"bg-surface-0 flex products-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ product.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col gap-6 mt-6\">\n <span class=\"text-2xl font-semibold\">{{ product.price | currency: 'USD' }}</span>\n <div class=\"flex gap-2\">\n <button pButton icon=\"pi pi-shopping-cart\" label=\"Buy Now\" [disabled]=\"product.inventoryStatus === 'OUTOFSTOCK'\" class=\"flex-auto whitespace-nowrap\"></button>\n <button pButton icon=\"pi pi-heart\" outlined></button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [DataViewModule, SelectButtonModule, TagModule, ButtonModule, FormsModule],\n providers: [ProductService]\n})\nexport class DataviewLayoutDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n options: any[] = ['list', 'grid'];\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products.set([...data.slice(0, 12)]);\n });\n }\n}"
8675
8675
  }
8676
8676
  },
8677
8677
  {
@@ -8687,7 +8687,7 @@
8687
8687
  "label": "Pagination",
8688
8688
  "description": "Pagination is enabled with the paginator and rows properties. Refer to the Paginator for more information about customizing the paginator.",
8689
8689
  "examples": {
8690
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [rows]=\"5\" [paginator]=\"true\">\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, TagModule],\n providers: [ProductService]\n})\nexport class DataviewPaginationDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products.set(data);\n });\n }\n}"
8690
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [rows]=\"5\" [paginator]=\"true\">\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, TagModule],\n providers: [ProductService]\n})\nexport class DataviewPaginationDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<any>([]);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products.set(data);\n });\n }\n}"
8691
8691
  }
8692
8692
  },
8693
8693
  {
@@ -8695,7 +8695,7 @@
8695
8695
  "label": "Sorting",
8696
8696
  "description": "Built-in sorting is controlled by bindings sortField and sortOrder properties from a custom UI.",
8697
8697
  "examples": {
8698
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { SelectItem } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [sortField]=\"sortField\" [sortOrder]=\"sortOrder\">\n <ng-template #header>\n <div class=\"flex flex-col md:flex-row md:justify-between\">\n <p-select [options]=\"sortOptions\" [(ngModel)]=\"sortKey\" placeholder=\"Sort By Price\" (onChange)=\"onSortChange($event)\" class=\"mb-2 md:mb-0\" />\n </div>\n </ng-template>\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"dark:!bg-surface-900 absolute\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, SelectModule, TagModule, FormsModule],\n providers: [ProductService]\n})\nexport class DataviewSortingDemo implements OnInit {\n private productService = inject(ProductService);\n sortOptions!: SelectItem[];\n sortOrder!: number;\n sortField!: string;\n products = signal<any>([]);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => this.products.set(data.slice(0, 5)));\n this.sortOptions = [\n { label: 'Price High to Low', value: '!price' },\n { label: 'Price Low to High', value: 'price' }\n ];\n }\n\n getSeverity(product: Product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
8698
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DataViewModule } from '@exhaustive-ui/core/dataview';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { SelectItem } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-dataview #dv [value]=\"products()\" [sortField]=\"sortField\" [sortOrder]=\"sortOrder\">\n <ng-template #header>\n <div class=\"flex flex-col md:flex-row md:justify-between\">\n <p-select [options]=\"sortOptions\" [(ngModel)]=\"sortKey\" placeholder=\"Sort By Price\" (onChange)=\"onSortChange($event)\" class=\"mb-2 md:mb-0\" />\n </div>\n </ng-template>\n <ng-template #list let-items>\n <div class=\"grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12\" *ngFor=\"let item of items; let first = first\">\n <div class=\"flex flex-col sm:flex-row sm:items-center p-6 gap-4\" [ngClass]=\"{ 'border-t border-surface-200 dark:border-surface-700': !first }\">\n <div class=\"md:w-40 relative\">\n <img class=\"block xl:block mx-auto rounded-border w-full\" [src]=\"'https://exhaustive-ui.com/demo/product/' + item.image\" [alt]=\"item.name\" />\n <p-tag [value]=\"item.inventoryStatus\" [severity]=\"getSeverity(item)\" class=\"dark:!bg-surface-900 absolute\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n <div class=\"flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6\">\n <div class=\"flex flex-row md:flex-col justify-between items-start gap-2\">\n <div>\n <span class=\"font-medium text-secondary text-sm\">{{ item.category }}</span>\n <div class=\"text-lg font-medium text-surface-900 dark:text-surface-0 mt-2\">{{ item.name }}</div>\n </div>\n <div class=\"bg-surface-100 dark:bg-surface-700 p-1\" style=\"border-radius: 30px\">\n <div\n class=\"bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2\"\n style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\"\n >\n <span class=\"text-surface-900 dark:text-surface-0 font-medium text-sm\">{{ item.rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex flex-col md:items-end gap-8\">\n <span class=\"text-xl font-semibold text-surface-900 dark:text-surface-0\">{{ '$' + item.price }}</span>\n <div class=\"flex flex-row-reverse md:flex-row gap-2\">\n <p-button icon=\"pi pi-heart\" [outlined]=\"true\" />\n <p-button icon=\"pi pi-shopping-cart\" class=\"flex-auto md:flex-initial whitespace-nowrap\" label=\"Buy Now\" [disabled]=\"item.inventoryStatus === 'OUTOFSTOCK'\" />\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n </p-dataview>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, DataViewModule, SelectModule, TagModule, FormsModule],\n providers: [ProductService]\n})\nexport class DataviewSortingDemo implements OnInit {\n private productService = inject(ProductService);\n sortOptions!: SelectItem[];\n sortOrder!: number;\n sortField!: string;\n products = signal<any>([]);\n\n ngOnInit() {\n this.productService.getProducts().then((data) => this.products.set(data.slice(0, 5)));\n this.sortOptions = [\n { label: 'Price High to Low', value: '!price' },\n { label: 'Price Low to High', value: 'price' }\n ];\n }\n\n getSeverity(product: Product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
8699
8699
  }
8700
8700
  }
8701
8701
  ],
@@ -11117,7 +11117,7 @@
11117
11117
  "label": "Template",
11118
11118
  "description": "Dialog can be customized using header and footer templates.",
11119
11119
  "examples": {
11120
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DialogModule } from '@exhaustive-ui/core/dialog';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button (click)=\"showDialog()\" label=\"Show\" />\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" [style]=\"{ width: '25rem' }\">\n <ng-template #header>\n <div class=\"inline-flex items-center justify-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n </div>\n </ng-template>\n <span class=\"text-surface-500 dark:text-surface-400 block mb-8\">Update your information.</span>\n <div class=\"flex items-center gap-4 mb-4\">\n <label for=\"username\" class=\"font-semibold w-24\">Username</label>\n <input pInputText id=\"username\" class=\"flex-auto\" autocomplete=\"off\" />\n </div>\n <div class=\"flex items-center gap-4 mb-2\">\n <label for=\"email\" class=\"font-semibold w-24\">Email</label>\n <input pInputText id=\"email\" class=\"flex-auto\" autocomplete=\"off\" />\n </div>\n <ng-template #footer>\n <p-button label=\"Cancel\" [text]=\"true\" severity=\"secondary\" (click)=\"visible = false\" />\n <p-button label=\"Save\" [outlined]=\"true\" severity=\"secondary\" (click)=\"visible = false\" />\n </ng-template>\n </p-dialog>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, DialogModule, InputTextModule]\n})\nexport class DialogTemplateDemo {\n visible: boolean = false;\n\n showDialog() {\n this.visible = true;\n }\n}"
11120
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { DialogModule } from '@exhaustive-ui/core/dialog';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button (click)=\"showDialog()\" label=\"Show\" />\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" [style]=\"{ width: '25rem' }\">\n <ng-template #header>\n <div class=\"inline-flex items-center justify-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n </div>\n </ng-template>\n <span class=\"text-surface-500 dark:text-surface-400 block mb-8\">Update your information.</span>\n <div class=\"flex items-center gap-4 mb-4\">\n <label for=\"username\" class=\"font-semibold w-24\">Username</label>\n <input pInputText id=\"username\" class=\"flex-auto\" autocomplete=\"off\" />\n </div>\n <div class=\"flex items-center gap-4 mb-2\">\n <label for=\"email\" class=\"font-semibold w-24\">Email</label>\n <input pInputText id=\"email\" class=\"flex-auto\" autocomplete=\"off\" />\n </div>\n <ng-template #footer>\n <p-button label=\"Cancel\" [text]=\"true\" severity=\"secondary\" (click)=\"visible = false\" />\n <p-button label=\"Save\" [outlined]=\"true\" severity=\"secondary\" (click)=\"visible = false\" />\n </ng-template>\n </p-dialog>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, DialogModule, InputTextModule]\n})\nexport class DialogTemplateDemo {\n visible: boolean = false;\n\n showDialog() {\n this.visible = true;\n }\n}"
11121
11121
  }
11122
11122
  },
11123
11123
  {
@@ -11922,7 +11922,7 @@
11922
11922
  "label": "Advanced",
11923
11923
  "description": "A mock desktop UI implemented with various components in addition to Dock.",
11924
11924
  "examples": {
11925
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { DialogModule } from '@exhaustive-ui/core/dialog';\nimport { DockModule } from '@exhaustive-ui/core/dock';\nimport { GalleriaModule } from '@exhaustive-ui/core/galleria';\nimport { MenubarModule } from '@exhaustive-ui/core/menubar';\nimport { TerminalModule } from '@exhaustive-ui/core/terminal';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { TreeModule } from '@exhaustive-ui/core/tree';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { NodeService } from '@/service/nodeservice';\nimport { PhotoService } from '@/service/photoservice';\nimport { MenuItem, MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card dock-demo\">\n <p-menubar [model]=\"menubarItems\">\n <ng-template #start>\n <i class=\"pi pi-apple px-2\"></i>\n </ng-template>\n <ng-template #end>\n <i class=\"pi pi-video px-2\"></i>\n <i class=\"pi pi-wifi px-2\"></i>\n <i class=\"pi pi-volume-up px-2\"></i>\n <span class=\"px-2\">Fri 13:07</span>\n <i class=\"pi pi-search px-2\"></i>\n <i class=\"pi pi-bars px-2\"></i>\n </ng-template>\n </p-menubar>\n <div class=\"dock-window\">\n <p-dock [model]=\"dockItems\" position=\"bottom\">\n <ng-template #item let-item>\n <a [pTooltip]=\"item.label\" tooltipPosition=\"top\" class=\"p-dock-item-link\">\n <img [alt]=\"item.label\" [src]=\"item.icon\" style=\"width: 100%\" />\n </a>\n </ng-template>\n </p-dock>\n <p-toast position=\"top-center\" key=\"tc\" />\n <p-dialog [(visible)]=\"displayFinder\" [breakpoints]=\"{ '960px': '50vw' }\" [style]=\"{ width: '30vw', height: '18rem' }\" [draggable]=\"false\" [resizable]=\"false\" header=\"Finder\">\n <p-tree [value]=\"nodes\" />\n </p-dialog>\n <p-dialog [maximizable]=\"true\" [(visible)]=\"displayTerminal\" [breakpoints]=\"{ '960px': '50vw' }\" [style]=\"{ width: '30vw' }\" [draggable]=\"false\" [resizable]=\"false\" header=\"Terminal\">\n <p-terminal welcomeMessage=\"Welcome to ExhaustiveUI (cmd: 'date', 'greet {0}', 'random')\" prompt=\"exhaustive $\" />\n </p-dialog>\n <p-galleria\n [(value)]=\"images\"\n [showThumbnails]=\"false\"\n [showThumbnailNavigators]=\"false\"\n [showItemNavigators]=\"true\"\n [(visible)]=\"displayGalleria\"\n [circular]=\"true\"\n [responsiveOptions]=\"responsiveOptions\"\n [circular]=\"true\"\n [fullScreen]=\"true\"\n [containerStyle]=\"{ width: '400px' }\"\n >\n <ng-template #item let-item>\n <img [src]=\"item.itemImageSrc\" style=\"width: 100%; display: block;\" />\n </ng-template>\n </p-galleria>\n </div>\n </div>\n `,\n standalone: true,\n imports: [DialogModule, DockModule, GalleriaModule, MenubarModule, TerminalModule, ToastModule, TreeModule, TooltipModule],\n providers: [NodeService, PhotoService, MessageService]\n})\nexport class DockAdvancedDemo implements OnInit {\n private nodeService = inject(NodeService);\n private photoService = inject(PhotoService);\n private messageService = inject(MessageService);\n displayTerminal: boolean | undefined;\n displayFinder: boolean | undefined;\n displayGalleria: boolean | undefined;\n dockItems: MenuItem[] | undefined;\n menubarItems: any[] | undefined;\n responsiveOptions: any[] | undefined;\n images: any[] | undefined;\n nodes: any[] | undefined;\n subscription: Subscription | undefined;\n\n ngOnInit() {\n this.dockItems = [\n {\n label: 'Finder',\n tooltipOptions: {\n tooltipLabel: 'Finder',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/finder.svg',\n command: () => {\n this.displayFinder = true;\n }\n },\n {\n label: 'Terminal',\n tooltipOptions: {\n tooltipLabel: 'Terminal',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/terminal.svg',\n command: () => {\n this.displayTerminal = true;\n }\n },\n {\n label: 'App Store',\n tooltipOptions: {\n tooltipLabel: 'App Store',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/appstore.svg',\n url: 'https://www.apple.com/app-store/'\n },\n {\n label: 'Safari',\n tooltipOptions: {\n tooltipLabel: 'Safari',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/safari.svg'\n },\n {\n label: 'Photos',\n tooltipOptions: {\n tooltipLabel: 'Photos',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/photos.svg',\n command: () => {\n this.displayGalleria = true;\n }\n },\n {\n label: 'GitHub',\n tooltipOptions: {\n tooltipLabel: 'GitHub',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/github.svg',\n url: 'https://github.com/e-xiste/exhaustive-ui'\n },\n {\n label: 'Trash',\n tooltipOptions: {\n tooltipLabel: 'Trash',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/trash.png',\n command: () => {\n this.messageService.add({ severity: 'info', summary: 'Trash is empty', key: 'tc' });\n }\n }\n ];\n this.menubarItems = [\n {\n label: 'Finder',\n styleClass: 'menubar-root'\n },\n {\n label: 'File',\n items: [\n {\n label: 'New',\n icon: 'pi pi-fw pi-plus',\n items: [\n {\n label: 'Bookmark',\n icon: 'pi pi-fw pi-bookmark'\n },\n {\n label: 'Video',\n icon: 'pi pi-fw pi-video'\n }\n ]\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-trash'\n },\n {\n separator: true\n },\n {\n label: 'Export',\n icon: 'pi pi-fw pi-external-link'\n }\n ]\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Left',\n icon: 'pi pi-fw pi-align-left'\n },\n {\n label: 'Right',\n icon: 'pi pi-fw pi-align-right'\n },\n {\n label: 'Center',\n icon: 'pi pi-fw pi-align-center'\n },\n {\n label: 'Justify',\n icon: 'pi pi-fw pi-align-justify'\n }\n ]\n },\n {\n label: 'Users',\n items: [\n {\n label: 'New',\n icon: 'pi pi-fw pi-user-plus'\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-user-minus'\n },\n {\n label: 'Search',\n icon: 'pi pi-fw pi-users',\n items: [\n {\n label: 'Filter',\n icon: 'pi pi-fw pi-filter',\n items: [\n {\n label: 'Print',\n icon: 'pi pi-fw pi-print'\n }\n ]\n },\n {\n icon: 'pi pi-fw pi-bars',\n label: 'List'\n }\n ]\n }\n ]\n },\n {\n label: 'Events',\n items: [\n {\n label: 'Edit',\n icon: 'pi pi-fw pi-pencil',\n items: [\n {\n label: 'Save',\n icon: 'pi pi-fw pi-calendar-plus'\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-calendar-minus'\n }\n ]\n },\n {\n label: 'Archieve',\n icon: 'pi pi-fw pi-calendar-times',\n items: [\n {\n label: 'Remove',\n icon: 'pi pi-fw pi-calendar-minus'\n }\n ]\n }\n ]\n },\n {\n label: 'Quit'\n }\n ];\n this.responsiveOptions = [\n {\n breakpoint: '1024px',\n numVisible: 3\n },\n {\n breakpoint: '768px',\n numVisible: 2\n },\n {\n breakpoint: '560px',\n numVisible: 1\n }\n ];\n this.subscription = this.terminalService.commandHandler.subscribe((command) => this.commandHandler(command));\n this.galleriaService.getImages().then((data) => (this.images = data));\n this.nodeService.getFiles().then((data) => (this.nodes = data));\n }\n\n commandHandler(text: any) {\n let response;\n let argsIndex = text.indexOf(' ');\n let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;\n \n switch (command) {\n case 'date':\n response = 'Today is ' + new Date().toDateString();\n break;\n \n case 'greet':\n response = 'Hola ' + text.substring(argsIndex + 1) + '!';\n break;\n \n case 'random':\n response = Math.floor(Math.random() * 100);\n break;\n \n default:\n response = 'Unknown command: ' + command;\n break;\n }\n \n if (response) {\n this.terminalService.sendResponse(response as string);\n }\n }\n\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n}"
11925
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { DialogModule } from '@exhaustive-ui/core/dialog';\nimport { DockModule } from '@exhaustive-ui/core/dock';\nimport { GalleriaModule } from '@exhaustive-ui/core/galleria';\nimport { MenubarModule } from '@exhaustive-ui/core/menubar';\nimport { TerminalModule } from '@exhaustive-ui/core/terminal';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { TreeModule } from '@exhaustive-ui/core/tree';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { NodeService } from '@/service/nodeservice';\nimport { PhotoService } from '@/service/photoservice';\nimport { MenuItem, MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card dock-demo\">\n <p-menubar [model]=\"menubarItems\">\n <ng-template #start>\n <i class=\"pi pi-apple px-2\"></i>\n </ng-template>\n <ng-template #end>\n <i class=\"pi pi-video px-2\"></i>\n <i class=\"pi pi-wifi px-2\"></i>\n <i class=\"pi pi-volume-up px-2\"></i>\n <span class=\"px-2\">Fri 13:07</span>\n <i class=\"pi pi-search px-2\"></i>\n <i class=\"pi pi-bars px-2\"></i>\n </ng-template>\n </p-menubar>\n <div class=\"dock-window\">\n <p-dock [model]=\"dockItems\" position=\"bottom\">\n <ng-template #item let-item>\n <a [pTooltip]=\"item.label\" tooltipPosition=\"top\" class=\"p-dock-item-link\">\n <img [alt]=\"item.label\" [src]=\"item.icon\" style=\"width: 100%\" />\n </a>\n </ng-template>\n </p-dock>\n <p-toast position=\"top-center\" key=\"tc\" />\n <p-dialog [(visible)]=\"displayFinder\" [breakpoints]=\"{ '960px': '50vw' }\" [style]=\"{ width: '30vw', height: '18rem' }\" [draggable]=\"false\" [resizable]=\"false\" header=\"Finder\">\n <p-tree [value]=\"nodes\" />\n </p-dialog>\n <p-dialog [maximizable]=\"true\" [(visible)]=\"displayTerminal\" [breakpoints]=\"{ '960px': '50vw' }\" [style]=\"{ width: '30vw' }\" [draggable]=\"false\" [resizable]=\"false\" header=\"Terminal\">\n <p-terminal welcomeMessage=\"Welcome to ExhaustiveUI (cmd: 'date', 'greet {0}', 'random')\" prompt=\"exhaustive $\" />\n </p-dialog>\n <p-galleria\n [(value)]=\"images\"\n [showThumbnails]=\"false\"\n [showThumbnailNavigators]=\"false\"\n [showItemNavigators]=\"true\"\n [(visible)]=\"displayGalleria\"\n [circular]=\"true\"\n [responsiveOptions]=\"responsiveOptions\"\n [circular]=\"true\"\n [fullScreen]=\"true\"\n [containerStyle]=\"{ width: '400px' }\"\n >\n <ng-template #item let-item>\n <img [src]=\"item.itemImageSrc\" style=\"width: 100%; display: block;\" />\n </ng-template>\n </p-galleria>\n </div>\n </div>\n `,\n standalone: true,\n imports: [DialogModule, DockModule, GalleriaModule, MenubarModule, TerminalModule, ToastModule, TreeModule, TooltipModule],\n providers: [NodeService, PhotoService, MessageService]\n})\nexport class DockAdvancedDemo implements OnInit {\n private nodeService = inject(NodeService);\n private photoService = inject(PhotoService);\n private messageService = inject(MessageService);\n displayTerminal: boolean | undefined;\n displayFinder: boolean | undefined;\n displayGalleria: boolean | undefined;\n dockItems: MenuItem[] | undefined;\n menubarItems: any[] | undefined;\n responsiveOptions: any[] | undefined;\n images: any[] | undefined;\n nodes: any[] | undefined;\n subscription: Subscription | undefined;\n\n ngOnInit() {\n this.dockItems = [\n {\n label: 'Finder',\n tooltipOptions: {\n tooltipLabel: 'Finder',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/finder.svg',\n command: () => {\n this.displayFinder = true;\n }\n },\n {\n label: 'Terminal',\n tooltipOptions: {\n tooltipLabel: 'Terminal',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/terminal.svg',\n command: () => {\n this.displayTerminal = true;\n }\n },\n {\n label: 'App Store',\n tooltipOptions: {\n tooltipLabel: 'App Store',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/appstore.svg',\n url: 'https://www.apple.com/app-store/'\n },\n {\n label: 'Safari',\n tooltipOptions: {\n tooltipLabel: 'Safari',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/safari.svg'\n },\n {\n label: 'Photos',\n tooltipOptions: {\n tooltipLabel: 'Photos',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/photos.svg',\n command: () => {\n this.displayGalleria = true;\n }\n },\n {\n label: 'GitHub',\n tooltipOptions: {\n tooltipLabel: 'GitHub',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/github.svg',\n url: 'https://github.com/e-xiste/exhaustive-ui'\n },\n {\n label: 'Trash',\n tooltipOptions: {\n tooltipLabel: 'Trash',\n tooltipPosition: 'top',\n positionTop: -15,\n positionLeft: 15,\n showDelay: 1000\n },\n icon: 'https://exhaustive-ui.com/demo/dock/trash.png',\n command: () => {\n this.messageService.add({ severity: 'info', summary: 'Trash is empty', key: 'tc' });\n }\n }\n ];\n this.menubarItems = [\n {\n label: 'Finder',\n styleClass: 'menubar-root'\n },\n {\n label: 'File',\n items: [\n {\n label: 'New',\n icon: 'pi pi-fw pi-plus',\n items: [\n {\n label: 'Bookmark',\n icon: 'pi pi-fw pi-bookmark'\n },\n {\n label: 'Video',\n icon: 'pi pi-fw pi-video'\n }\n ]\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-trash'\n },\n {\n separator: true\n },\n {\n label: 'Export',\n icon: 'pi pi-fw pi-external-link'\n }\n ]\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Left',\n icon: 'pi pi-fw pi-align-left'\n },\n {\n label: 'Right',\n icon: 'pi pi-fw pi-align-right'\n },\n {\n label: 'Center',\n icon: 'pi pi-fw pi-align-center'\n },\n {\n label: 'Justify',\n icon: 'pi pi-fw pi-align-justify'\n }\n ]\n },\n {\n label: 'Users',\n items: [\n {\n label: 'New',\n icon: 'pi pi-fw pi-user-plus'\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-user-minus'\n },\n {\n label: 'Search',\n icon: 'pi pi-fw pi-users',\n items: [\n {\n label: 'Filter',\n icon: 'pi pi-fw pi-filter',\n items: [\n {\n label: 'Print',\n icon: 'pi pi-fw pi-print'\n }\n ]\n },\n {\n icon: 'pi pi-fw pi-bars',\n label: 'List'\n }\n ]\n }\n ]\n },\n {\n label: 'Events',\n items: [\n {\n label: 'Edit',\n icon: 'pi pi-fw pi-pencil',\n items: [\n {\n label: 'Save',\n icon: 'pi pi-fw pi-calendar-plus'\n },\n {\n label: 'Delete',\n icon: 'pi pi-fw pi-calendar-minus'\n }\n ]\n },\n {\n label: 'Archieve',\n icon: 'pi pi-fw pi-calendar-times',\n items: [\n {\n label: 'Remove',\n icon: 'pi pi-fw pi-calendar-minus'\n }\n ]\n }\n ]\n },\n {\n label: 'Quit'\n }\n ];\n this.responsiveOptions = [\n {\n breakpoint: '1024px',\n numVisible: 3\n },\n {\n breakpoint: '768px',\n numVisible: 2\n },\n {\n breakpoint: '560px',\n numVisible: 1\n }\n ];\n this.subscription = this.terminalService.commandHandler.subscribe((command) => this.commandHandler(command));\n this.galleriaService.getImages().then((data) => (this.images = data));\n this.nodeService.getFiles().then((data) => (this.nodes = data));\n }\n\n commandHandler(text: any) {\n let response;\n let argsIndex = text.indexOf(' ');\n let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;\n \n switch (command) {\n case 'date':\n response = 'Today is ' + new Date().toDateString();\n break;\n \n case 'greet':\n response = 'Hola ' + text.substring(argsIndex + 1) + '!';\n break;\n \n case 'random':\n response = Math.floor(Math.random() * 100);\n break;\n \n default:\n response = 'Unknown command: ' + command;\n break;\n }\n \n if (response) {\n this.terminalService.sendResponse(response as string);\n }\n }\n\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n}"
11926
11926
  }
11927
11927
  },
11928
11928
  {
@@ -11930,7 +11930,7 @@
11930
11930
  "label": "Basic",
11931
11931
  "description": "Dock requires a collection of menuitems as its model . Default location is bottom and other sides are also available when defined with the position property. Content of the dock component is defined by item template.",
11932
11932
  "examples": {
11933
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { DockModule } from '@exhaustive-ui/core/dock';\nimport { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <div class=\"flex flex-wrap gap-4 mb-8\">\n <div *ngFor=\"let pos of positionOptions\" class=\"flex items-center\">\n <p-radiobutton name=\"dock\" [value]=\"pos.value\" [label]=\"pos.label\" [(ngModel)]=\"position\" [inputId]=\"pos.label\" />\n <label [for]=\"pos.label\" class=\"ml-2\"> {{ pos.label }} </label>\n </div>\n </div>\n <div class=\"dock-window\">\n <p-dock [model]=\"items\" [position]=\"position\">\n <ng-template #item let-item>\n <img [pTooltip]=\"item.label\" tooltipPosition=\"top\" [src]=\"item.icon\" [alt]=\"item.label\" width=\"100%\" />\n </ng-template>\n </p-dock>\n </div>\n </div>\n `,\n standalone: true,\n imports: [DockModule, RadioButtonModule, TooltipModule, FormsModule]\n})\nexport class DockBasicDemo implements OnInit {\n items: MenuItem[] | undefined;\n positionOptions: any[];\n\n ngOnInit() {\n this.items = [\n {\n label: 'Finder',\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/finder.svg'\n },\n {\n label: 'App Store',\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/appstore.svg'\n },\n {\n label: 'Photos',\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/photos.svg'\n },\n {\n label: 'Trash',\n icon: 'https://exhaustive-ui.e-xiste.com/demo/dock/trash.png'\n }\n ];\n }\n}"
11933
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { DockModule } from '@exhaustive-ui/core/dock';\nimport { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <div class=\"flex flex-wrap gap-4 mb-8\">\n <div *ngFor=\"let pos of positionOptions\" class=\"flex items-center\">\n <p-radiobutton name=\"dock\" [value]=\"pos.value\" [label]=\"pos.label\" [(ngModel)]=\"position\" [inputId]=\"pos.label\" />\n <label [for]=\"pos.label\" class=\"ml-2\"> {{ pos.label }} </label>\n </div>\n </div>\n <div class=\"dock-window\">\n <p-dock [model]=\"items\" [position]=\"position\">\n <ng-template #item let-item>\n <img [pTooltip]=\"item.label\" tooltipPosition=\"top\" [src]=\"item.icon\" [alt]=\"item.label\" width=\"100%\" />\n </ng-template>\n </p-dock>\n </div>\n </div>\n `,\n standalone: true,\n imports: [DockModule, RadioButtonModule, TooltipModule, FormsModule]\n})\nexport class DockBasicDemo implements OnInit {\n items: MenuItem[] | undefined;\n positionOptions: any[];\n\n ngOnInit() {\n this.items = [\n {\n label: 'Finder',\n icon: 'https://exhaustive-ui.com/demo/dock/finder.svg'\n },\n {\n label: 'App Store',\n icon: 'https://exhaustive-ui.com/demo/dock/appstore.svg'\n },\n {\n label: 'Photos',\n icon: 'https://exhaustive-ui.com/demo/dock/photos.svg'\n },\n {\n label: 'Trash',\n icon: 'https://exhaustive-ui.com/demo/dock/trash.png'\n }\n ];\n }\n}"
11934
11934
  }
11935
11935
  }
11936
11936
  ],
@@ -12186,7 +12186,7 @@
12186
12186
  "label": "DataTable",
12187
12187
  "description": "Drag and Drop to Table",
12188
12188
  "examples": {
12189
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12 md:col-span-6 drag-column\">\n <div *ngFor=\"let product of availableProducts\">\n <div class=\"product-item\" pDraggable=\"products\" (onDragStart)=\"dragStart(product)\" (onDragEnd)=\"dragEnd()\">\n <div class=\"image-container\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"product-image\" />\n </div>\n <div class=\"product-list-detail\">\n <h5 class=\"mb-2\">{{ product.name }}</h5>\n <i class=\"pi pi-tag product-category-icon\"></i>\n <span class=\"product-category\">{{ product.category }}</span>\n </div>\n <div class=\"product-list-action\">\n <h6 class=\"mb-2\">{{ product.price }}</h6>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-6 drop-column\" pDroppable=\"products\" (onDrop)=\"drop()\">\n <p-table [value]=\"selectedProducts\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>ID</th>\n <th>Category</th>\n <th>Name</th>\n <th>Price</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-product>\n <tr>\n <td>{{ product.id }}</td>\n <td>{{ product.category }}</td>\n <td>{{ product.name }}</td>\n <td>{{ product.price }}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [ProductService]\n})\nexport class DragdropDatatableDemo implements OnInit {\n private productService = inject(ProductService);\n availableProducts: Product[] | undefined;\n selectedProducts: Product[] | undefined;\n draggedProduct: Product | undefined | null;\n\n ngOnInit() {\n this.selectedProducts = [];\n this.productService.getProductsSmall().then((products) => (this.availableProducts = products));\n }\n\n dragStart(product: Product) {\n this.draggedProduct = product;\n }\n\n drop() {\n if (this.draggedProduct) {\n let draggedProductIndex = this.findIndex(this.draggedProduct);\n this.selectedProducts = [...(this.selectedProducts as Product[]), this.draggedProduct];\n this.availableProducts = this.availableProducts?.filter((val, i) => i != draggedProductIndex);\n this.draggedProduct = null;\n }\n }\n\n dragEnd() {\n this.draggedProduct = null;\n }\n\n findIndex(product: Product) {\n let index = -1;\n for (let i = 0; i < (this.availableProducts as Product[]).length; i++) {\n if (product.id === (this.availableProducts as Product[])[i].id) {\n index = i;\n break;\n }\n }\n return index;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
12189
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card grid grid-cols-12 gap-4 grid-nogutter\">\n <div class=\"col-span-12 md:col-span-6 drag-column\">\n <div *ngFor=\"let product of availableProducts\">\n <div class=\"product-item\" pDraggable=\"products\" (onDragStart)=\"dragStart(product)\" (onDragEnd)=\"dragEnd()\">\n <div class=\"image-container\">\n <img src=\"https://exhaustive-ui.com/demo/product/{{ product.image }}\" [alt]=\"product.name\" class=\"product-image\" />\n </div>\n <div class=\"product-list-detail\">\n <h5 class=\"mb-2\">{{ product.name }}</h5>\n <i class=\"pi pi-tag product-category-icon\"></i>\n <span class=\"product-category\">{{ product.category }}</span>\n </div>\n <div class=\"product-list-action\">\n <h6 class=\"mb-2\">{{ product.price }}</h6>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-6 drop-column\" pDroppable=\"products\" (onDrop)=\"drop()\">\n <p-table [value]=\"selectedProducts\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>ID</th>\n <th>Category</th>\n <th>Name</th>\n <th>Price</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-product>\n <tr>\n <td>{{ product.id }}</td>\n <td>{{ product.category }}</td>\n <td>{{ product.name }}</td>\n <td>{{ product.price }}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [ProductService]\n})\nexport class DragdropDatatableDemo implements OnInit {\n private productService = inject(ProductService);\n availableProducts: Product[] | undefined;\n selectedProducts: Product[] | undefined;\n draggedProduct: Product | undefined | null;\n\n ngOnInit() {\n this.selectedProducts = [];\n this.productService.getProductsSmall().then((products) => (this.availableProducts = products));\n }\n\n dragStart(product: Product) {\n this.draggedProduct = product;\n }\n\n drop() {\n if (this.draggedProduct) {\n let draggedProductIndex = this.findIndex(this.draggedProduct);\n this.selectedProducts = [...(this.selectedProducts as Product[]), this.draggedProduct];\n this.availableProducts = this.availableProducts?.filter((val, i) => i != draggedProductIndex);\n this.draggedProduct = null;\n }\n }\n\n dragEnd() {\n this.draggedProduct = null;\n }\n\n findIndex(product: Product) {\n let index = -1;\n for (let i = 0; i < (this.availableProducts as Product[]).length; i++) {\n if (product.id === (this.availableProducts as Product[])[i].id) {\n index = i;\n break;\n }\n }\n return index;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
12190
12190
  }
12191
12191
  },
12192
12192
  {
@@ -12294,7 +12294,7 @@
12294
12294
  "label": "Headless",
12295
12295
  "description": "Headless mode allows you to customize the entire user interface instead of the default elements.",
12296
12296
  "examples": {
12297
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-drawer #drawerRef [(visible)]=\"visible\">\n <ng-template #headless>\n <div class=\"flex flex-col h-full\">\n <div class=\"flex items-center justify-between px-6 pt-4 shrink-0\">\n <span class=\"inline-flex items-center gap-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <span class=\"font-semibold text-2xl text-primary\">Your Logo</span>\n </span>\n <span>\n <p-button type=\"button\" (click)=\"closeCallback($event)\" icon=\"pi pi-times\" rounded=\"true\" outlined=\"true\" styleClass=\"h-8 w-8\"></p-button>\n </span>\n </div>\n <div class=\"overflow-y-auto\">\n <ul class=\"list-none p-4 m-0\">\n <li>\n <div\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"p-4 flex items-center justify-between text-surface-600 dark:text-surface-200 cursor-pointer p-ripple\"\n >\n <span class=\"font-medium\">FAVORITES</span>\n <i class=\"pi pi-chevron-down\"></i>\n </div>\n <ul class=\"list-none p-0 m-0 overflow-hidden\">\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-home mr-2\"></i>\n <span class=\"font-medium\">Dashboard</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-bookmark mr-2\"></i>\n <span class=\"font-medium\">Bookmarks</span>\n </a>\n </li>\n <li>\n <a\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Reports</span>\n <i class=\"pi pi-chevron-down ml-auto\"></i>\n </a>\n <ul class=\"list-none py-0 pl-4 pr-0 m-0 hidden overflow-y-hidden transition-all duration-[400ms] ease-in-out\">\n <li>\n <a\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Revenue</span>\n <i class=\"pi pi-chevron-down ml-auto\"></i>\n </a>\n <ul class=\"list-none py-0 pl-4 pr-0 m-0 hidden overflow-y-hidden transition-all duration-[400ms] ease-in-out\">\n <li>\n <a\n pRipple\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-table mr-2\"></i>\n <span class=\"font-medium\">View</span>\n </a>\n </li>\n <li>\n <a\n pRipple\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-search mr-2\"></i>\n <span class=\"font-medium\">Search</span>\n </a>\n </li>\n </ul>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Expenses</span>\n </a>\n </li>\n </ul>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-users mr-2\"></i>\n <span class=\"font-medium\">Team</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-comments mr-2\"></i>\n <span class=\"font-medium\">Messages</span>\n <span class=\"inline-flex items-center justify-center ml-auto bg-primary text-primary-contrast rounded-full\" style=\"min-width: 1.5rem; height: 1.5rem\">3</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-calendar mr-2\"></i>\n <span class=\"font-medium\">Calendar</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-cog mr-2\"></i>\n <span class=\"font-medium\">Settings</span>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n <ul class=\"list-none p-4 m-0\">\n <li>\n <div\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"p-4 flex items-center justify-between text-surface-600 dark:text-surface-200 cursor-pointer p-ripple\"\n >\n <span class=\"font-medium\">APPLICATION</span>\n <i class=\"pi pi-chevron-down\"></i>\n </div>\n <ul class=\"list-none p-0 m-0 overflow-hidden\">\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-folder mr-2\"></i>\n <span class=\"font-medium\">Projects</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-chart-bar mr-2\"></i>\n <span class=\"font-medium\">Performance</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-cog mr-2\"></i>\n <span class=\"font-medium\">Settings</span>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n <div class=\"mt-auto\">\n <hr class=\"mb-4 mx-4 border-t border-0 border-surface\" />\n <a pRipple class=\"m-4 flex items-center cursor-pointer p-4 gap-2 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </a>\n </div>\n </div>\n </ng-template>\n </p-drawer>\n <p-button (click)=\"visible = true\" icon=\"pi pi-bars\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, DrawerModule, RippleModule]\n})\nexport class DrawerHeadlessDemo {\n visible: boolean = false;\n\n closeCallback(e): void {\n this.drawerRef.close(e);\n }\n}"
12297
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-drawer #drawerRef [(visible)]=\"visible\">\n <ng-template #headless>\n <div class=\"flex flex-col h-full\">\n <div class=\"flex items-center justify-between px-6 pt-4 shrink-0\">\n <span class=\"inline-flex items-center gap-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <span class=\"font-semibold text-2xl text-primary\">Your Logo</span>\n </span>\n <span>\n <p-button type=\"button\" (click)=\"closeCallback($event)\" icon=\"pi pi-times\" rounded=\"true\" outlined=\"true\" styleClass=\"h-8 w-8\"></p-button>\n </span>\n </div>\n <div class=\"overflow-y-auto\">\n <ul class=\"list-none p-4 m-0\">\n <li>\n <div\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"p-4 flex items-center justify-between text-surface-600 dark:text-surface-200 cursor-pointer p-ripple\"\n >\n <span class=\"font-medium\">FAVORITES</span>\n <i class=\"pi pi-chevron-down\"></i>\n </div>\n <ul class=\"list-none p-0 m-0 overflow-hidden\">\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-home mr-2\"></i>\n <span class=\"font-medium\">Dashboard</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-bookmark mr-2\"></i>\n <span class=\"font-medium\">Bookmarks</span>\n </a>\n </li>\n <li>\n <a\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Reports</span>\n <i class=\"pi pi-chevron-down ml-auto\"></i>\n </a>\n <ul class=\"list-none py-0 pl-4 pr-0 m-0 hidden overflow-y-hidden transition-all duration-[400ms] ease-in-out\">\n <li>\n <a\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Revenue</span>\n <i class=\"pi pi-chevron-down ml-auto\"></i>\n </a>\n <ul class=\"list-none py-0 pl-4 pr-0 m-0 hidden overflow-y-hidden transition-all duration-[400ms] ease-in-out\">\n <li>\n <a\n pRipple\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-table mr-2\"></i>\n <span class=\"font-medium\">View</span>\n </a>\n </li>\n <li>\n <a\n pRipple\n class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\"\n >\n <i class=\"pi pi-search mr-2\"></i>\n <span class=\"font-medium\">Search</span>\n </a>\n </li>\n </ul>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-chart-line mr-2\"></i>\n <span class=\"font-medium\">Expenses</span>\n </a>\n </li>\n </ul>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-users mr-2\"></i>\n <span class=\"font-medium\">Team</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-comments mr-2\"></i>\n <span class=\"font-medium\">Messages</span>\n <span class=\"inline-flex items-center justify-center ml-auto bg-primary text-primary-contrast rounded-full\" style=\"min-width: 1.5rem; height: 1.5rem\">3</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-calendar mr-2\"></i>\n <span class=\"font-medium\">Calendar</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-cog mr-2\"></i>\n <span class=\"font-medium\">Settings</span>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n <ul class=\"list-none p-4 m-0\">\n <li>\n <div\n pRipple\n pStyleClass=\"@next\"\n enterFromClass=\"hidden\"\n enterActiveClass=\"animate-slidedown\"\n leaveToClass=\"hidden\"\n leaveActiveClass=\"animate-slideup\"\n class=\"p-4 flex items-center justify-between text-surface-600 dark:text-surface-200 cursor-pointer p-ripple\"\n >\n <span class=\"font-medium\">APPLICATION</span>\n <i class=\"pi pi-chevron-down\"></i>\n </div>\n <ul class=\"list-none p-0 m-0 overflow-hidden\">\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-folder mr-2\"></i>\n <span class=\"font-medium\">Projects</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-chart-bar mr-2\"></i>\n <span class=\"font-medium\">Performance</span>\n </a>\n </li>\n <li>\n <a pRipple class=\"flex items-center cursor-pointer p-4 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <i class=\"pi pi-cog mr-2\"></i>\n <span class=\"font-medium\">Settings</span>\n </a>\n </li>\n </ul>\n </li>\n </ul>\n </div>\n <div class=\"mt-auto\">\n <hr class=\"mb-4 mx-4 border-t border-0 border-surface\" />\n <a pRipple class=\"m-4 flex items-center cursor-pointer p-4 gap-2 rounded-border text-surface-700 dark:text-surface-100 hover:bg-surface-100 dark:hover:bg-surface-700 duration-150 transition-colors p-ripple\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </a>\n </div>\n </div>\n </ng-template>\n </p-drawer>\n <p-button (click)=\"visible = true\" icon=\"pi pi-bars\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, DrawerModule, RippleModule]\n})\nexport class DrawerHeadlessDemo {\n visible: boolean = false;\n\n closeCallback(e): void {\n this.drawerRef.close(e);\n }\n}"
12298
12298
  }
12299
12299
  },
12300
12300
  {
@@ -12318,7 +12318,7 @@
12318
12318
  "label": "Template",
12319
12319
  "description": "Drawer is customizable by header , content , footer templates.",
12320
12320
  "examples": {
12321
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { DrawerModule } from '@exhaustive-ui/core/drawer';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-drawer [(visible)]=\"visible\" [closable]=\"false\">\n <ng-template #header>\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat.\n </p>\n <ng-template #footer>\n <div class=\"flex items-center gap-2\">\n <button pButton label=\"Account\" icon=\"pi pi-user\" class=\"w-full\" outlined></button>\n <button pButton label=\"Logout\" icon=\"pi pi-sign-out\" class=\"w-full\" severity=\"danger\" text></button>\n </div>\n </ng-template>\n </p-drawer>\n <button pButton (click)=\"visible = true\" icon=\"pi pi-plus\"></button>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, DrawerModule, ButtonModule]\n})\nexport class DrawerTemplateDemo {\n visible: boolean = false;\n}"
12321
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { DrawerModule } from '@exhaustive-ui/core/drawer';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-drawer [(visible)]=\"visible\" [closable]=\"false\">\n <ng-template #header>\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <p>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat.\n </p>\n <ng-template #footer>\n <div class=\"flex items-center gap-2\">\n <button pButton label=\"Account\" icon=\"pi pi-user\" class=\"w-full\" outlined></button>\n <button pButton label=\"Logout\" icon=\"pi pi-sign-out\" class=\"w-full\" severity=\"danger\" text></button>\n </div>\n </ng-template>\n </p-drawer>\n <button pButton (click)=\"visible = true\" icon=\"pi pi-plus\"></button>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, DrawerModule, ButtonModule]\n})\nexport class DrawerTemplateDemo {\n visible: boolean = false;\n}"
12322
12322
  }
12323
12323
  }
12324
12324
  ],
@@ -13225,7 +13225,7 @@
13225
13225
  "label": "Template",
13226
13226
  "description": "Header section can also be defined with custom content instead of primitive values.",
13227
13227
  "examples": {
13228
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { FieldsetModule } from '@exhaustive-ui/core/fieldset';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-fieldset>\n <ng-template #header>\n <div class=\"flex items-center gap-2 px-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </p-fieldset>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, FieldsetModule]\n})\nexport class FieldsetTemplateDemo {}"
13228
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { FieldsetModule } from '@exhaustive-ui/core/fieldset';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-fieldset>\n <ng-template #header>\n <div class=\"flex items-center gap-2 px-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </p-fieldset>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, FieldsetModule]\n})\nexport class FieldsetTemplateDemo {}"
13229
13229
  }
13230
13230
  },
13231
13231
  {
@@ -13572,7 +13572,7 @@
13572
13572
  "label": "Advanced",
13573
13573
  "description": "Advanced uploader provides dragdrop support, multi file uploads, auto uploading, progress tracking and validations.",
13574
13574
  "examples": {
13575
- "typescript": "import { Component, inject } from '@angular/core';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-fileupload name=\"demo[]\" url=\"https://exhaustive-ui.e-xiste.com/api/upload\" (onUpload)=\"onUpload($event)\" [multiple]=\"true\" accept=\"image/*\" maxFileSize=\"1000000\" mode=\"advanced\">\n <ng-template #empty>\n <div>Drag and drop files to here to upload.</div>\n </ng-template>\n </p-fileupload>\n </div>\n `,\n standalone: true,\n imports: [FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadAdvancedDemo {\n private messageService = inject(MessageService);\n uploadedFiles: any[] = [];\n}"
13575
+ "typescript": "import { Component, inject } from '@angular/core';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-fileupload name=\"demo[]\" url=\"https://exhaustive-ui.com/api/upload\" (onUpload)=\"onUpload($event)\" [multiple]=\"true\" accept=\"image/*\" maxFileSize=\"1000000\" mode=\"advanced\">\n <ng-template #empty>\n <div>Drag and drop files to here to upload.</div>\n </ng-template>\n </p-fileupload>\n </div>\n `,\n standalone: true,\n imports: [FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadAdvancedDemo {\n private messageService = inject(MessageService);\n uploadedFiles: any[] = [];\n}"
13576
13576
  }
13577
13577
  },
13578
13578
  {
@@ -13580,7 +13580,7 @@
13580
13580
  "label": "Auto",
13581
13581
  "description": "When auto property is enabled, a file gets uploaded instantly after selection.",
13582
13582
  "examples": {
13583
- "typescript": "import { Component, inject } from '@angular/core';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-toast />\n <p-fileupload mode=\"basic\" name=\"demo[]\" chooseIcon=\"pi pi-upload\" url=\"https://exhaustive-ui.e-xiste.com/api/upload\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onBasicUploadAuto($event)\" [auto]=\"true\" chooseLabel=\"Browse\" />\n </div>\n `,\n standalone: true,\n imports: [FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadAutoDemo {\n private messageService = inject(MessageService);\n}"
13583
+ "typescript": "import { Component, inject } from '@angular/core';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-toast />\n <p-fileupload mode=\"basic\" name=\"demo[]\" chooseIcon=\"pi pi-upload\" url=\"https://exhaustive-ui.com/api/upload\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onBasicUploadAuto($event)\" [auto]=\"true\" chooseLabel=\"Browse\" />\n </div>\n `,\n standalone: true,\n imports: [FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadAutoDemo {\n private messageService = inject(MessageService);\n}"
13584
13584
  }
13585
13585
  },
13586
13586
  {
@@ -13588,7 +13588,7 @@
13588
13588
  "label": "Basic",
13589
13589
  "description": "FileUpload basic mode provides a simpler UI as an alternative to default advanced mode.",
13590
13590
  "examples": {
13591
- "typescript": "import { Component, inject } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <p-toast />\n <div class=\"card flex flex-wrap gap-6 items-center justify-between\">\n <p-fileupload #fu mode=\"basic\" chooseLabel=\"Choose\" chooseIcon=\"pi pi-upload\" name=\"demo[]\" url=\"https://exhaustive-ui.e-xiste.com/api/upload\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onUpload($event)\" />\n <p-button label=\"Upload\" (onClick)=\"fu.upload()\" severity=\"secondary\" />\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadBasicDemo {\n private messageService = inject(MessageService);\n}"
13591
+ "typescript": "import { Component, inject } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\ninterface UploadEvent {\n originalEvent: Event;\n files: File[];\n}\n\n@Component({\n template: `\n <p-toast />\n <div class=\"card flex flex-wrap gap-6 items-center justify-between\">\n <p-fileupload #fu mode=\"basic\" chooseLabel=\"Choose\" chooseIcon=\"pi pi-upload\" name=\"demo[]\" url=\"https://exhaustive-ui.com/api/upload\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onUpload($event)\" />\n <p-button label=\"Upload\" (onClick)=\"fu.upload()\" severity=\"secondary\" />\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, FileUploadModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadBasicDemo {\n private messageService = inject(MessageService);\n}"
13592
13592
  }
13593
13593
  },
13594
13594
  {
@@ -13604,7 +13604,7 @@
13604
13604
  "label": "Template",
13605
13605
  "description": "",
13606
13606
  "examples": {
13607
- "typescript": "import { Component, inject } from '@angular/core';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { Exhaustive } from '@exhaustive-ui/core/config';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <app-docsectiontext>\n <p>\n Uploader UI is customizable using a ng-template called <i>file</i> that gets the <a href=\"https://www.w3.org/TR/FileAPI/\">File</a> instance as the implicit variable. Second ng-template named <i>content</i> can be used to place custom\n content inside the content section which would be useful to implement a user interface to manage the uploaded files such as removing them. This template gets the selected files as the implicit variable. Third and final ng-template\n option is <i>toolbar</i> to display custom content at toolbar.\n </p></app-docsectiontext\n >\n <div class=\"card\">\n <p-toast />\n <p-fileupload name=\"myfile[]\" url=\"https://exhaustive-ui.e-xiste.com/api/upload\" [multiple]=\"true\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onTemplatedUpload()\" (onSelect)=\"onSelectedFiles($event)\">\n <ng-template #header let-files let-chooseCallback=\"chooseCallback\" let-clearCallback=\"clearCallback\" let-uploadCallback=\"uploadCallback\">\n <div class=\"flex flex-wrap justify-between items-center flex-1 gap-4\">\n <div class=\"flex gap-2\">\n <p-button (onClick)=\"choose($event, chooseCallback)\" icon=\"pi pi-images\" [rounded]=\"true\" [outlined]=\"true\" />\n <p-button (onClick)=\"uploadEvent(uploadCallback)\" icon=\"pi pi-cloud-upload\" [rounded]=\"true\" [outlined]=\"true\" severity=\"success\" [disabled]=\"!files || files.length === 0\" />\n <p-button (onClick)=\"clearCallback()\" icon=\"pi pi-times\" [rounded]=\"true\" [outlined]=\"true\" severity=\"danger\" [disabled]=\"!files || files.length === 0\" />\n </div>\n <p-progressbar [value]=\"totalSizePercent\" [showValue]=\"false\" class=\"w-full\" class=\"md:w-20rem h-1 w-full md:ml-auto\">\n <span class=\"whitespace-nowrap\">{{ totalSize }}B / 1Mb</span>\n </p-progressbar>\n </div>\n </ng-template>\n <ng-template #content let-files let-uploadedFiles=\"uploadedFiles\" let-removeFileCallback=\"removeFileCallback\" let-removeUploadedFileCallback=\"removeUploadedFileCallback\">\n <div class=\"flex flex-col gap-8 pt-4\">\n <div *ngIf=\"files?.length > 0\">\n <h5>Pending</h5>\n <div class=\"flex flex-wrap gap-4\">\n <div *ngFor=\"let file of files; let i = index\" class=\"p-8 rounded-border flex flex-col border border-surface items-center gap-4\">\n <div>\n <img role=\"presentation\" [alt]=\"file.name\" [src]=\"file.objectURL\" width=\"100\" height=\"50\" />\n </div>\n <span class=\"font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden\">{{ file.name }}</span>\n <div>{{ formatSize(file.size) }}</div>\n <p-badge value=\"Pending\" severity=\"warn\" />\n <p-button icon=\"pi pi-times\" (click)=\"onRemoveTemplatingFile($event, file, removeFileCallback, index)\" [outlined]=\"true\" [rounded]=\"true\" severity=\"danger\" />\n </div>\n </div>\n </div>\n <div *ngIf=\"uploadedFiles?.length > 0\">\n <h5>Completed</h5>\n <div class=\"flex flex-wrap gap-4\">\n <div *ngFor=\"let file of uploadedFiles; let i = index\" class=\"card m-0 px-12 flex flex-col border border-surface items-center gap-4\">\n <div>\n <img role=\"presentation\" [alt]=\"file.name\" [src]=\"file.objectURL\" width=\"100\" height=\"50\" />\n </div>\n <span class=\"font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden\">{{ file.name }}</span>\n <div>{{ formatSize(file.size) }}</div>\n <p-badge value=\"Completed\" class=\"mt-4\" severity=\"success\" />\n <p-button icon=\"pi pi-times\" (onClick)=\"removeUploadedFileCallback(index)\" [outlined]=\"true\" [rounded]=\"true\" severity=\"danger\" />\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #file></ng-template>\n <ng-template #empty>\n <div class=\"flex items-center justify-center flex-col\">\n <i class=\"pi pi-cloud-upload !border-2 !rounded-full !p-8 !text-4xl !text-muted-color\"></i>\n <p class=\"mt-6 mb-0\">Drag and drop files to here to upload.</p>\n </div>\n </ng-template>\n </p-fileupload>\n </div>\n `,\n standalone: true,\n imports: [BadgeModule, ButtonModule, FileUploadModule, ProgressBarModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadTemplateDemo {\n private messageService = inject(MessageService);\n files: any[] = [];\n totalSize: number = 0;\n totalSizePercent: number = 0;\n\n onRemoveTemplatingFile(event, file, removeFileCallback, index) {\n removeFileCallback(event, index);\n this.totalSize -= parseInt(this.formatSize(file.size));\n this.totalSizePercent = this.totalSize / 10;\n }\n\n onClearTemplatingUpload(clear) {\n clear();\n this.totalSize = 0;\n this.totalSizePercent = 0;\n }\n\n onTemplatedUpload() {\n this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded', life: 3000 });\n }\n\n onSelectedFiles(event) {\n this.files = event.currentFiles;\n this.files.forEach((file) => {\n this.totalSize += parseInt(this.formatSize(file.size));\n });\n this.totalSizePercent = this.totalSize / 10;\n }\n\n uploadEvent(callback) {\n callback();\n }\n\n formatSize(bytes) {\n const k = 1024;\n const dm = 3;\n const sizes = this.config.translation.fileSizeTypes;\n if (bytes === 0) {\n return `0 ${sizes[0]}`;\n }\n \n const i = Math.floor(Math.log(bytes) / Math.log(k));\n const formattedSize = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n \n return `${formattedSize} ${sizes[i]}`;\n }\n}"
13607
+ "typescript": "import { Component, inject } from '@angular/core';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { Exhaustive } from '@exhaustive-ui/core/config';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <app-docsectiontext>\n <p>\n Uploader UI is customizable using a ng-template called <i>file</i> that gets the <a href=\"https://www.w3.org/TR/FileAPI/\">File</a> instance as the implicit variable. Second ng-template named <i>content</i> can be used to place custom\n content inside the content section which would be useful to implement a user interface to manage the uploaded files such as removing them. This template gets the selected files as the implicit variable. Third and final ng-template\n option is <i>toolbar</i> to display custom content at toolbar.\n </p></app-docsectiontext\n >\n <div class=\"card\">\n <p-toast />\n <p-fileupload name=\"myfile[]\" url=\"https://exhaustive-ui.com/api/upload\" [multiple]=\"true\" accept=\"image/*\" maxFileSize=\"1000000\" (onUpload)=\"onTemplatedUpload()\" (onSelect)=\"onSelectedFiles($event)\">\n <ng-template #header let-files let-chooseCallback=\"chooseCallback\" let-clearCallback=\"clearCallback\" let-uploadCallback=\"uploadCallback\">\n <div class=\"flex flex-wrap justify-between items-center flex-1 gap-4\">\n <div class=\"flex gap-2\">\n <p-button (onClick)=\"choose($event, chooseCallback)\" icon=\"pi pi-images\" [rounded]=\"true\" [outlined]=\"true\" />\n <p-button (onClick)=\"uploadEvent(uploadCallback)\" icon=\"pi pi-cloud-upload\" [rounded]=\"true\" [outlined]=\"true\" severity=\"success\" [disabled]=\"!files || files.length === 0\" />\n <p-button (onClick)=\"clearCallback()\" icon=\"pi pi-times\" [rounded]=\"true\" [outlined]=\"true\" severity=\"danger\" [disabled]=\"!files || files.length === 0\" />\n </div>\n <p-progressbar [value]=\"totalSizePercent\" [showValue]=\"false\" class=\"w-full\" class=\"md:w-20rem h-1 w-full md:ml-auto\">\n <span class=\"whitespace-nowrap\">{{ totalSize }}B / 1Mb</span>\n </p-progressbar>\n </div>\n </ng-template>\n <ng-template #content let-files let-uploadedFiles=\"uploadedFiles\" let-removeFileCallback=\"removeFileCallback\" let-removeUploadedFileCallback=\"removeUploadedFileCallback\">\n <div class=\"flex flex-col gap-8 pt-4\">\n <div *ngIf=\"files?.length > 0\">\n <h5>Pending</h5>\n <div class=\"flex flex-wrap gap-4\">\n <div *ngFor=\"let file of files; let i = index\" class=\"p-8 rounded-border flex flex-col border border-surface items-center gap-4\">\n <div>\n <img role=\"presentation\" [alt]=\"file.name\" [src]=\"file.objectURL\" width=\"100\" height=\"50\" />\n </div>\n <span class=\"font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden\">{{ file.name }}</span>\n <div>{{ formatSize(file.size) }}</div>\n <p-badge value=\"Pending\" severity=\"warn\" />\n <p-button icon=\"pi pi-times\" (click)=\"onRemoveTemplatingFile($event, file, removeFileCallback, index)\" [outlined]=\"true\" [rounded]=\"true\" severity=\"danger\" />\n </div>\n </div>\n </div>\n <div *ngIf=\"uploadedFiles?.length > 0\">\n <h5>Completed</h5>\n <div class=\"flex flex-wrap gap-4\">\n <div *ngFor=\"let file of uploadedFiles; let i = index\" class=\"card m-0 px-12 flex flex-col border border-surface items-center gap-4\">\n <div>\n <img role=\"presentation\" [alt]=\"file.name\" [src]=\"file.objectURL\" width=\"100\" height=\"50\" />\n </div>\n <span class=\"font-semibold text-ellipsis max-w-60 whitespace-nowrap overflow-hidden\">{{ file.name }}</span>\n <div>{{ formatSize(file.size) }}</div>\n <p-badge value=\"Completed\" class=\"mt-4\" severity=\"success\" />\n <p-button icon=\"pi pi-times\" (onClick)=\"removeUploadedFileCallback(index)\" [outlined]=\"true\" [rounded]=\"true\" severity=\"danger\" />\n </div>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #file></ng-template>\n <ng-template #empty>\n <div class=\"flex items-center justify-center flex-col\">\n <i class=\"pi pi-cloud-upload !border-2 !rounded-full !p-8 !text-4xl !text-muted-color\"></i>\n <p class=\"mt-6 mb-0\">Drag and drop files to here to upload.</p>\n </div>\n </ng-template>\n </p-fileupload>\n </div>\n `,\n standalone: true,\n imports: [BadgeModule, ButtonModule, FileUploadModule, ProgressBarModule, ToastModule],\n providers: [MessageService]\n})\nexport class FileuploadTemplateDemo {\n private messageService = inject(MessageService);\n files: any[] = [];\n totalSize: number = 0;\n totalSizePercent: number = 0;\n\n onRemoveTemplatingFile(event, file, removeFileCallback, index) {\n removeFileCallback(event, index);\n this.totalSize -= parseInt(this.formatSize(file.size));\n this.totalSizePercent = this.totalSize / 10;\n }\n\n onClearTemplatingUpload(clear) {\n clear();\n this.totalSize = 0;\n this.totalSizePercent = 0;\n }\n\n onTemplatedUpload() {\n this.messageService.add({ severity: 'info', summary: 'Success', detail: 'File Uploaded', life: 3000 });\n }\n\n onSelectedFiles(event) {\n this.files = event.currentFiles;\n this.files.forEach((file) => {\n this.totalSize += parseInt(this.formatSize(file.size));\n });\n this.totalSizePercent = this.totalSize / 10;\n }\n\n uploadEvent(callback) {\n callback();\n }\n\n formatSize(bytes) {\n const k = 1024;\n const dm = 3;\n const sizes = this.config.translation.fileSizeTypes;\n if (bytes === 0) {\n return `0 ${sizes[0]}`;\n }\n \n const i = Math.floor(Math.log(bytes) / Math.log(k));\n const formattedSize = parseFloat((bytes / Math.pow(k, i)).toFixed(dm));\n \n return `${formattedSize} ${sizes[i]}`;\n }\n}"
13608
13608
  }
13609
13609
  }
13610
13610
  ],
@@ -15904,7 +15904,7 @@
15904
15904
  "label": "Basic",
15905
15905
  "description": "Images are defined using templating with left and right templates. Use the style or class properties to define the size of the container.",
15906
15906
  "examples": {
15907
- "typescript": "import { Component } from '@angular/core';\nimport { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-imagecompare class=\"shadow-lg rounded-2xl\">\n <ng-template #left>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/compare/island1.jpg\" />\n </ng-template>\n <ng-template #right>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/compare/island2.jpg\" />\n </ng-template>\n </p-imagecompare>\n </div>\n `,\n standalone: true,\n imports: [ImageCompareModule]\n})\nexport class ImagecompareBasicDemo {}"
15907
+ "typescript": "import { Component } from '@angular/core';\nimport { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-imagecompare class=\"shadow-lg rounded-2xl\">\n <ng-template #left>\n <img src=\"https://exhaustive-ui.com/demo/compare/island1.jpg\" />\n </ng-template>\n <ng-template #right>\n <img src=\"https://exhaustive-ui.com/demo/compare/island2.jpg\" />\n </ng-template>\n </p-imagecompare>\n </div>\n `,\n standalone: true,\n imports: [ImageCompareModule]\n})\nexport class ImagecompareBasicDemo {}"
15908
15908
  }
15909
15909
  },
15910
15910
  {
@@ -15912,7 +15912,7 @@
15912
15912
  "label": "Responsive",
15913
15913
  "description": "Apply responsive styles to the container element to optimize display per screen size.",
15914
15914
  "examples": {
15915
- "typescript": "import { Component } from '@angular/core';\nimport { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-imagecompare class=\"sm:!w-96 shadow-lg rounded-2xl\">\n <ng-template #left>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/compare/island1.jpg\" />\n </ng-template>\n <ng-template #right>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/compare/island2.jpg\" />\n </ng-template>\n </p-imagecompare>\n </div>\n `,\n standalone: true,\n imports: [ImageCompareModule]\n})\nexport class ImagecompareResponsiveDemo {}"
15915
+ "typescript": "import { Component } from '@angular/core';\nimport { ImageCompareModule } from '@exhaustive-ui/core/imagecompare';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-imagecompare class=\"sm:!w-96 shadow-lg rounded-2xl\">\n <ng-template #left>\n <img src=\"https://exhaustive-ui.com/demo/compare/island1.jpg\" />\n </ng-template>\n <ng-template #right>\n <img src=\"https://exhaustive-ui.com/demo/compare/island2.jpg\" />\n </ng-template>\n </p-imagecompare>\n </div>\n `,\n standalone: true,\n imports: [ImageCompareModule]\n})\nexport class ImagecompareResponsiveDemo {}"
15916
15916
  }
15917
15917
  }
15918
15918
  ],
@@ -16102,7 +16102,7 @@
16102
16102
  "label": "Image",
16103
16103
  "description": "Any content such as an image can be placed inside an Inplace.",
16104
16104
  "examples": {
16105
- "typescript": "import { Component } from '@angular/core';\nimport { InplaceModule } from '@exhaustive-ui/core/inplace';\nimport { Photo } from '@/domain/photo';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-inplace>\n <ng-template #display>\n <span class=\"inline-flex items-center gap-2\">\n <span class=\"pi pi-image\" style=\"vertical-align: middle\"></span>\n <span class=\"ml-2\">View Photo</span>\n </span>\n </ng-template>\n <ng-template #content>\n <img class=\"w-full sm:w-80 shadow-md\" src=\"https://exhaustive-ui.e-xiste.com/demo/galleria/galleria5.jpg\" alt=\"Nature\" />\n </ng-template>\n </p-inplace>\n </div>\n `,\n standalone: true,\n imports: [InplaceModule]\n})\nexport class InplaceImageDemo {}"
16105
+ "typescript": "import { Component } from '@angular/core';\nimport { InplaceModule } from '@exhaustive-ui/core/inplace';\nimport { Photo } from '@/domain/photo';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-inplace>\n <ng-template #display>\n <span class=\"inline-flex items-center gap-2\">\n <span class=\"pi pi-image\" style=\"vertical-align: middle\"></span>\n <span class=\"ml-2\">View Photo</span>\n </span>\n </ng-template>\n <ng-template #content>\n <img class=\"w-full sm:w-80 shadow-md\" src=\"https://exhaustive-ui.com/demo/galleria/galleria5.jpg\" alt=\"Nature\" />\n </ng-template>\n </p-inplace>\n </div>\n `,\n standalone: true,\n imports: [InplaceModule]\n})\nexport class InplaceImageDemo {}"
16106
16106
  }
16107
16107
  },
16108
16108
  {
@@ -18855,7 +18855,7 @@
18855
18855
  "label": "Group",
18856
18856
  "description": "Options can be grouped when a nested data structures is provided.",
18857
18857
  "examples": {
18858
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ListboxModule } from '@exhaustive-ui/core/listbox';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-listbox [options]=\"groupedCities\" [group]=\"true\" [(ngModel)]=\"selectedCountry\" class=\"w-full md:w-56\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-listbox>\n </div>\n `,\n standalone: true,\n imports: [ListboxModule, FormsModule]\n})\nexport class ListboxGroupDemo {\n groupedCities!: SelectItemGroup[];\n selectedCountry!: Country;\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
18858
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ListboxModule } from '@exhaustive-ui/core/listbox';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-listbox [options]=\"groupedCities\" [group]=\"true\" [(ngModel)]=\"selectedCountry\" class=\"w-full md:w-56\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-listbox>\n </div>\n `,\n standalone: true,\n imports: [ListboxModule, FormsModule]\n})\nexport class ListboxGroupDemo {\n groupedCities!: SelectItemGroup[];\n selectedCountry!: Country;\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
18859
18859
  }
18860
18860
  },
18861
18861
  {
@@ -18887,7 +18887,7 @@
18887
18887
  "label": "Template",
18888
18888
  "description": "For custom content support define a template named item where the default local template variable refers to an option.",
18889
18889
  "examples": {
18890
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ListboxModule } from '@exhaustive-ui/core/listbox';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-listbox [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" class=\"w-full md:w-56\">\n <ng-template #item let-country>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-listbox>\n </div>\n `,\n standalone: true,\n imports: [ListboxModule, FormsModule]\n})\nexport class ListboxTemplateDemo implements OnInit {\n countries!: Country[];\n selectedCountry!: Country;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
18890
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ListboxModule } from '@exhaustive-ui/core/listbox';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-listbox [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" class=\"w-full md:w-56\">\n <ng-template #item let-country>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-listbox>\n </div>\n `,\n standalone: true,\n imports: [ListboxModule, FormsModule]\n})\nexport class ListboxTemplateDemo implements OnInit {\n countries!: Country[];\n selectedCountry!: Country;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
18891
18891
  }
18892
18892
  },
18893
18893
  {
@@ -19856,7 +19856,7 @@
19856
19856
  "label": "Template",
19857
19857
  "description": "Custom content can be placed between p-megamenu tags. Megamenu should be horizontal for custom content.",
19858
19858
  "examples": {
19859
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MegaMenuModule } from '@exhaustive-ui/core/megamenu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MegaMenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-megamenu [model]=\"items\" [style]=\"{ 'border-radius': '3rem', display: 'flex' }\" class=\"p-4 bg-surface-0 dark:bg-surface-900\">\n <ng-template #start>\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n </ng-template>\n <ng-template #item let-item>\n <a *ngIf=\"item.root\" pRipple class=\"flex items-center cursor-pointer px-4 py-2 overflow-hidden relative font-semibold text-lg uppercase\" style=\"border-radius: 2rem\">\n <i [ngClass]=\"item.icon\"></i>\n <span class=\"ml-2\">{{ item.label }}</span>\n </a>\n <a *ngIf=\"!item.root && !item.image\" class=\"flex items-center p-4 cursor-pointer mb-2 gap-2\">\n <span class=\"inline-flex items-center justify-center rounded-full bg-primary text-primary-contrast w-12 h-12\">\n <i [ngClass]=\"item.icon + ' text-lg'\"></i>\n </span>\n <span class=\"inline-flex flex-col gap-1\">\n <span class=\"font-medium text-lg text-surface-900 dark:text-surface-0\">{{ item.label }}</span>\n <span class=\"whitespace-nowrap\">{{ item.subtext }}</span>\n </span>\n </a>\n <div *ngIf=\"item.image\" class=\"flex flex-col items-start gap-4\">\n <img [src]=\"item.image\" alt=\"megamenu-demo\" class=\"w-full\" />\n <span>{{ item.subtext }}</span>\n <p-button [label]=\"item.label\" [outlined]=\"true\"></p-button>\n </div>\n </ng-template>\n <ng-template #end>\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </ng-template>\n </p-megamenu>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, MegaMenuModule, RippleModule]\n})\nexport class MegamenuTemplateDemo implements OnInit {\n items: MegaMenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n label: 'Company',\n root: true,\n items: [\n [\n {\n items: [\n { label: 'Features', icon: 'pi pi-list', subtext: 'Subtext of item' },\n { label: 'Customers', icon: 'pi pi-users', subtext: 'Subtext of item' },\n { label: 'Case Studies', icon: 'pi pi-file', subtext: 'Subtext of item' }\n ]\n }\n ],\n [\n {\n items: [\n { label: 'Solutions', icon: 'pi pi-shield', subtext: 'Subtext of item' },\n { label: 'Faq', icon: 'pi pi-question', subtext: 'Subtext of item' },\n { label: 'Library', icon: 'pi pi-search', subtext: 'Subtext of item' }\n ]\n }\n ],\n [\n {\n items: [\n { label: 'Community', icon: 'pi pi-comments', subtext: 'Subtext of item' },\n { label: 'Rewards', icon: 'pi pi-star', subtext: 'Subtext of item' },\n { label: 'Investors', icon: 'pi pi-globe', subtext: 'Subtext of item' }\n ]\n }\n ]\n ]\n },\n {\n label: 'Resources',\n root: true\n },\n {\n label: 'Contact',\n root: true\n }\n ];\n }\n}"
19859
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MegaMenuModule } from '@exhaustive-ui/core/megamenu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MegaMenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-megamenu [model]=\"items\" [style]=\"{ 'border-radius': '3rem', display: 'flex' }\" class=\"p-4 bg-surface-0 dark:bg-surface-900\">\n <ng-template #start>\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n </ng-template>\n <ng-template #item let-item>\n <a *ngIf=\"item.root\" pRipple class=\"flex items-center cursor-pointer px-4 py-2 overflow-hidden relative font-semibold text-lg uppercase\" style=\"border-radius: 2rem\">\n <i [ngClass]=\"item.icon\"></i>\n <span class=\"ml-2\">{{ item.label }}</span>\n </a>\n <a *ngIf=\"!item.root && !item.image\" class=\"flex items-center p-4 cursor-pointer mb-2 gap-2\">\n <span class=\"inline-flex items-center justify-center rounded-full bg-primary text-primary-contrast w-12 h-12\">\n <i [ngClass]=\"item.icon + ' text-lg'\"></i>\n </span>\n <span class=\"inline-flex flex-col gap-1\">\n <span class=\"font-medium text-lg text-surface-900 dark:text-surface-0\">{{ item.label }}</span>\n <span class=\"whitespace-nowrap\">{{ item.subtext }}</span>\n </span>\n </a>\n <div *ngIf=\"item.image\" class=\"flex flex-col items-start gap-4\">\n <img [src]=\"item.image\" alt=\"megamenu-demo\" class=\"w-full\" />\n <span>{{ item.subtext }}</span>\n <p-button [label]=\"item.label\" [outlined]=\"true\"></p-button>\n </div>\n </ng-template>\n <ng-template #end>\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </ng-template>\n </p-megamenu>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, MegaMenuModule, RippleModule]\n})\nexport class MegamenuTemplateDemo implements OnInit {\n items: MegaMenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n label: 'Company',\n root: true,\n items: [\n [\n {\n items: [\n { label: 'Features', icon: 'pi pi-list', subtext: 'Subtext of item' },\n { label: 'Customers', icon: 'pi pi-users', subtext: 'Subtext of item' },\n { label: 'Case Studies', icon: 'pi pi-file', subtext: 'Subtext of item' }\n ]\n }\n ],\n [\n {\n items: [\n { label: 'Solutions', icon: 'pi pi-shield', subtext: 'Subtext of item' },\n { label: 'Faq', icon: 'pi pi-question', subtext: 'Subtext of item' },\n { label: 'Library', icon: 'pi pi-search', subtext: 'Subtext of item' }\n ]\n }\n ],\n [\n {\n items: [\n { label: 'Community', icon: 'pi pi-comments', subtext: 'Subtext of item' },\n { label: 'Rewards', icon: 'pi pi-star', subtext: 'Subtext of item' },\n { label: 'Investors', icon: 'pi pi-globe', subtext: 'Subtext of item' }\n ]\n }\n ]\n ]\n },\n {\n label: 'Resources',\n root: true\n },\n {\n label: 'Contact',\n root: true\n }\n ];\n }\n}"
19860
19860
  }
19861
19861
  },
19862
19862
  {
@@ -20473,7 +20473,7 @@
20473
20473
  "label": "Template",
20474
20474
  "description": "Menu offers item customization with the item template that receives the menuitem instance from the model as a parameter. The submenu header has its own submenuheader template, additional slots named start and end are provided to embed content before or after the menu.",
20475
20475
  "examples": {
20476
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { Menu, MenuModule } from '@exhaustive-ui/core/menu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-menu [model]=\"items\" class=\"flex justify-center\" styleClass=\"w-full md:w-60\">\n <ng-template #start>\n <span class=\"inline-flex items-center gap-1 px-2 py-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <span class=\"text-xl font-semibold\">PRIME<span class=\"text-primary\">APP</span></span>\n </span>\n </ng-template>\n <ng-template #submenuheader let-item>\n <span class=\"text-primary font-bold\">{{ item.label }}</span>\n </ng-template>\n <ng-template #item let-item>\n <a pRipple class=\"flex items-center px-3 py-2 cursor-pointer\" [class]=\"item.linkClass\">\n <span [class]=\"item.icon\"></span>\n <span class=\"ms-2\">{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" class=\"ms-auto\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n </a>\n </ng-template>\n <ng-template #end>\n <button pRipple class=\"relative overflow-hidden w-full border-0 bg-transparent flex items-start p-2 pl-4 hover:bg-surface-100 dark:hover:bg-surface-800 rounded-none cursor-pointer transition-colors duration-200\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" class=\"mr-2\" shape=\"circle\" />\n <span class=\"inline-flex flex-col items-start\">\n <span class=\"font-bold\">Amy Elsner</span>\n <span class=\"text-sm\">Admin</span>\n </span>\n </button>\n </ng-template>\n </p-menu>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, MenuModule, RippleModule]\n})\nexport class MenuTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n separator: true\n },\n {\n label: 'Documents',\n items: [\n {\n label: 'New',\n icon: 'pi pi-plus',\n shortcut: '⌘+N'\n },\n {\n label: 'Search',\n icon: 'pi pi-search',\n shortcut: '⌘+S'\n }\n ]\n },\n {\n label: 'Profile',\n items: [\n {\n label: 'Settings',\n icon: 'pi pi-cog',\n shortcut: '⌘+O'\n },\n {\n label: 'Messages',\n icon: 'pi pi-inbox',\n badge: '2'\n },\n {\n label: 'Logout',\n icon: 'pi pi-sign-out',\n shortcut: '⌘+Q',\n linkClass: '!text-red-500 dark:!text-red-400'\n }\n ]\n },\n {\n separator: true\n }\n ];\n }\n}"
20476
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { Menu, MenuModule } from '@exhaustive-ui/core/menu';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-menu [model]=\"items\" class=\"flex justify-center\" styleClass=\"w-full md:w-60\">\n <ng-template #start>\n <span class=\"inline-flex items-center gap-1 px-2 py-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <span class=\"text-xl font-semibold\">PRIME<span class=\"text-primary\">APP</span></span>\n </span>\n </ng-template>\n <ng-template #submenuheader let-item>\n <span class=\"text-primary font-bold\">{{ item.label }}</span>\n </ng-template>\n <ng-template #item let-item>\n <a pRipple class=\"flex items-center px-3 py-2 cursor-pointer\" [class]=\"item.linkClass\">\n <span [class]=\"item.icon\"></span>\n <span class=\"ms-2\">{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" class=\"ms-auto\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n </a>\n </ng-template>\n <ng-template #end>\n <button pRipple class=\"relative overflow-hidden w-full border-0 bg-transparent flex items-start p-2 pl-4 hover:bg-surface-100 dark:hover:bg-surface-800 rounded-none cursor-pointer transition-colors duration-200\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" class=\"mr-2\" shape=\"circle\" />\n <span class=\"inline-flex flex-col items-start\">\n <span class=\"font-bold\">Amy Elsner</span>\n <span class=\"text-sm\">Admin</span>\n </span>\n </button>\n </ng-template>\n </p-menu>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, MenuModule, RippleModule]\n})\nexport class MenuTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n separator: true\n },\n {\n label: 'Documents',\n items: [\n {\n label: 'New',\n icon: 'pi pi-plus',\n shortcut: '⌘+N'\n },\n {\n label: 'Search',\n icon: 'pi pi-search',\n shortcut: '⌘+S'\n }\n ]\n },\n {\n label: 'Profile',\n items: [\n {\n label: 'Settings',\n icon: 'pi pi-cog',\n shortcut: '⌘+O'\n },\n {\n label: 'Messages',\n icon: 'pi pi-inbox',\n badge: '2'\n },\n {\n label: 'Logout',\n icon: 'pi pi-sign-out',\n shortcut: '⌘+Q',\n linkClass: '!text-red-500 dark:!text-red-400'\n }\n ]\n },\n {\n separator: true\n }\n ];\n }\n}"
20477
20477
  }
20478
20478
  }
20479
20479
  ],
@@ -20945,7 +20945,7 @@
20945
20945
  "label": "Template",
20946
20946
  "description": "Custom content can be placed inside the menubar using the start and end templates.",
20947
20947
  "examples": {
20948
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { MenubarModule } from '@exhaustive-ui/core/menubar';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-menubar [model]=\"items\">\n <ng-template #start>\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n </ng-template>\n <ng-template #item let-item let-root=\"root\">\n <a pRipple class=\"flex items-center px-4 py-3 cursor-pointer gap-2\">\n <span>{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" [ngClass]=\"{ 'ms-auto': !root }\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n <i *ngIf=\"item.items\" [ngClass]=\"['ms-auto pi', root ? 'pi-angle-down' : 'pi-angle-right']\"></i>\n </a>\n </ng-template>\n <ng-template #end>\n <div class=\"flex items-center gap-2\">\n <input type=\"text\" pInputText placeholder=\"Search\" class=\"w-36\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </div>\n </ng-template>\n </p-menubar>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, MenubarModule, InputTextModule, RippleModule]\n})\nexport class MenubarTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n label: 'Home',\n icon: 'pi pi-home'\n },\n {\n label: 'Projects',\n icon: 'pi pi-search',\n badge: '3',\n items: [\n {\n label: 'Core',\n icon: 'pi pi-bolt',\n shortcut: '⌘+S'\n },\n {\n label: 'Blocks',\n icon: 'pi pi-server',\n shortcut: '⌘+B'\n },\n {\n separator: true\n },\n {\n label: 'UI Kit',\n icon: 'pi pi-pencil',\n shortcut: '⌘+U'\n }\n ]\n }\n ];\n }\n}"
20948
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { MenubarModule } from '@exhaustive-ui/core/menubar';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { MenuItem } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-menubar [model]=\"items\">\n <ng-template #start>\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"block mx-auto\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n </ng-template>\n <ng-template #item let-item let-root=\"root\">\n <a pRipple class=\"flex items-center px-4 py-3 cursor-pointer gap-2\">\n <span>{{ item.label }}</span>\n <p-badge *ngIf=\"item.badge\" [ngClass]=\"{ 'ms-auto': !root }\" [value]=\"item.badge\" />\n <span *ngIf=\"item.shortcut\" class=\"ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1\">{{ item.shortcut }}</span>\n <i *ngIf=\"item.items\" [ngClass]=\"['ms-auto pi', root ? 'pi-angle-down' : 'pi-angle-right']\"></i>\n </a>\n </ng-template>\n <ng-template #end>\n <div class=\"flex items-center gap-2\">\n <input type=\"text\" pInputText placeholder=\"Search\" class=\"w-36\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </div>\n </ng-template>\n </p-menubar>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, MenubarModule, InputTextModule, RippleModule]\n})\nexport class MenubarTemplateDemo implements OnInit {\n items: MenuItem[] | undefined;\n\n ngOnInit() {\n this.items = [\n {\n label: 'Home',\n icon: 'pi pi-home'\n },\n {\n label: 'Projects',\n icon: 'pi pi-search',\n badge: '3',\n items: [\n {\n label: 'Core',\n icon: 'pi pi-bolt',\n shortcut: '⌘+S'\n },\n {\n label: 'Blocks',\n icon: 'pi pi-server',\n shortcut: '⌘+B'\n },\n {\n separator: true\n },\n {\n label: 'UI Kit',\n icon: 'pi pi-pencil',\n shortcut: '⌘+U'\n }\n ]\n }\n ];\n }\n}"
20949
20949
  }
20950
20950
  }
20951
20951
  ],
@@ -21479,7 +21479,7 @@
21479
21479
  "label": "Icon",
21480
21480
  "description": "The icon of a message is specified with the icon property.",
21481
21481
  "examples": {
21482
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { MessageModule } from '@exhaustive-ui/core/message';\n\n@Component({\n template: `\n <div class=\"card flex justify-center items-center gap-4\">\n <p-message severity=\"info\" icon=\"pi pi-send\" text=\"Info Message\" class=\"h-full\" />\n <p-message severity=\"success\">\n <ng-template #icon>\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </ng-template>\n <span class=\"ms-2\">How may I help you?</span>\n </p-message>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, MessageModule]\n})\nexport class MessageIconDemo {}"
21482
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { MessageModule } from '@exhaustive-ui/core/message';\n\n@Component({\n template: `\n <div class=\"card flex justify-center items-center gap-4\">\n <p-message severity=\"info\" icon=\"pi pi-send\" text=\"Info Message\" class=\"h-full\" />\n <p-message severity=\"success\">\n <ng-template #icon>\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n </ng-template>\n <span class=\"ms-2\">How may I help you?</span>\n </p-message>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, MessageModule]\n})\nexport class MessageIconDemo {}"
21483
21483
  }
21484
21484
  },
21485
21485
  {
@@ -22549,7 +22549,7 @@
22549
22549
  "label": "Group",
22550
22550
  "description": "Options can be grouped when a nested data structures is provided.",
22551
22551
  "examples": {
22552
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\n\ninterface City {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-multiselect [options]=\"groupedCities\" [group]=\"true\" [(ngModel)]=\"selectedCities\" placeholder=\"Select Cities\" scrollHeight=\"250px\" display=\"chip\" class=\"w-full md:w-80\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </div>\n `,\n standalone: true,\n imports: [MultiSelectModule, FormsModule]\n})\nexport class MultiselectGroupDemo {\n groupedCities!: SelectItemGroup[];\n selectedCities!: City[];\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
22552
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\n\ninterface City {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-multiselect [options]=\"groupedCities\" [group]=\"true\" [(ngModel)]=\"selectedCities\" placeholder=\"Select Cities\" scrollHeight=\"250px\" display=\"chip\" class=\"w-full md:w-80\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </div>\n `,\n standalone: true,\n imports: [MultiSelectModule, FormsModule]\n})\nexport class MultiselectGroupDemo {\n groupedCities!: SelectItemGroup[];\n selectedCities!: City[];\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
22553
22553
  }
22554
22554
  },
22555
22555
  {
@@ -22597,7 +22597,7 @@
22597
22597
  "label": "Template",
22598
22598
  "description": "Available options and the selected options support customization with item and selecteditems templates respectively. In addition, header, footer and filter sections can be templated as well.",
22599
22599
  "examples": {
22600
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-multiselect [options]=\"countries\" [(ngModel)]=\"selectedCountries\" placeholder=\"Select Countries\" optionLabel=\"name\" class=\"w-full md:w-80\" display=\"chip\">\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #dropdownicon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #filtericon>\n <i class=\"pi pi-map-marker\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"p-3 flex justify-between\">\n <p-button label=\"Add New\" severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n <p-button label=\"Remove All\" severity=\"danger\" text size=\"small\" icon=\"pi pi-times\" />\n </div>\n </ng-template>\n </p-multiselect>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, MultiSelectModule, FormsModule]\n})\nexport class MultiselectTemplateDemo implements OnInit {\n countries!: Country[];\n selectedCountries!: Country[];\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
22600
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { Country } from '@/domain/customer';\n\ninterface Country {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-multiselect [options]=\"countries\" [(ngModel)]=\"selectedCountries\" placeholder=\"Select Countries\" optionLabel=\"name\" class=\"w-full md:w-80\" display=\"chip\">\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #dropdownicon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #filtericon>\n <i class=\"pi pi-map-marker\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium px-3 py-2\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"p-3 flex justify-between\">\n <p-button label=\"Add New\" severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n <p-button label=\"Remove All\" severity=\"danger\" text size=\"small\" icon=\"pi pi-times\" />\n </div>\n </ng-template>\n </p-multiselect>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, MultiSelectModule, FormsModule]\n})\nexport class MultiselectTemplateDemo implements OnInit {\n countries!: Country[];\n selectedCountries!: Country[];\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
22601
22601
  }
22602
22602
  },
22603
22603
  {
@@ -23853,7 +23853,7 @@
23853
23853
  "label": "dragdrop-doc",
23854
23854
  "description": "Items can be reordered using drag and drop by enabling dragdrop property. Depends on &#64;angular/cdk package.",
23855
23855
  "examples": {
23856
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" dataKey=\"id\" [dragdrop]=\"true\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistDragdropDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23856
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" dataKey=\"id\" [dragdrop]=\"true\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistDragdropDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23857
23857
  }
23858
23858
  },
23859
23859
  {
@@ -23861,7 +23861,7 @@
23861
23861
  "label": "Filter",
23862
23862
  "description": "Filter value is checked against the property of an object configured with the filterBy property",
23863
23863
  "examples": {
23864
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" filterBy=\"name\" filterPlaceholder=\"Filter by name\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\" class=\"sm:min-w-96\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistFilterDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23864
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" filterBy=\"name\" filterPlaceholder=\"Filter by name\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\" class=\"sm:min-w-96\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistFilterDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23865
23865
  }
23866
23866
  },
23867
23867
  {
@@ -23869,7 +23869,7 @@
23869
23869
  "label": "Template",
23870
23870
  "description": "For custom content support define an item template that gets the item instance as a parameter. In addition header template is provided for further customization.",
23871
23871
  "examples": {
23872
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" dataKey=\"id\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23872
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { OrderListModule } from '@exhaustive-ui/core/orderlist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card sm:flex sm:justify-center\">\n <p-orderlist [value]=\"products()\" dataKey=\"id\" [responsive]=\"true\" breakpoint=\"575px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-sm': true,\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-orderlist>\n </div>\n `,\n standalone: true,\n imports: [OrderListModule],\n providers: [ProductService]\n})\nexport class OrderlistTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n products = signal<Product[]>([]);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((cars) => {\n this.products.set(cars);\n });\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warning';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
23873
23873
  }
23874
23874
  }
23875
23875
  ],
@@ -24318,7 +24318,7 @@
24318
24318
  "label": "Template",
24319
24319
  "description": "Custom content instead of a node label is defined using the pTemplate property.",
24320
24320
  "examples": {
24321
- "typescript": "import { Component } from '@angular/core';\nimport { TreeNode } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card overflow-x-auto\">\n <p-organization-chart [value]=\"data\" [collapsible]=\"true\">\n <ng-template let-node pTemplate=\"default\">\n <div class=\"flex flex-col items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [alt]=\"node.label\" [class]=\"'flag' + ' flag-' + node.data\" width=\"32\" />\n <div class=\"mt-4 font-medium text-lg\">{{ node.label }}</div>\n </div>\n </ng-template>\n </p-organization-chart>\n </div>\n `,\n standalone: true,\n imports: []\n})\nexport class OrganizationchartTemplateDemo {\n data: TreeNode[];\n}"
24321
+ "typescript": "import { Component } from '@angular/core';\nimport { TreeNode } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card overflow-x-auto\">\n <p-organization-chart [value]=\"data\" [collapsible]=\"true\">\n <ng-template let-node pTemplate=\"default\">\n <div class=\"flex flex-col items-center\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [alt]=\"node.label\" [class]=\"'flag' + ' flag-' + node.data\" width=\"32\" />\n <div class=\"mt-4 font-medium text-lg\">{{ node.label }}</div>\n </div>\n </ng-template>\n </p-organization-chart>\n </div>\n `,\n standalone: true,\n imports: []\n})\nexport class OrganizationchartTemplateDemo {\n data: TreeNode[];\n}"
24322
24322
  }
24323
24323
  }
24324
24324
  ],
@@ -25071,7 +25071,7 @@
25071
25071
  "label": "Images",
25072
25072
  "description": "Sample image gallery implementation using paginator.",
25073
25073
  "examples": {
25074
- "typescript": "import { Component } from '@angular/core';\nimport { PaginatorModule } from '@exhaustive-ui/core/paginator';\n\n@Component({\n template: `\n <div class=\"card flex flex-col gap-4 justify-center items-center\">\n <p-paginator [first]=\"first\" [rows]=\"1\" [totalRecords]=\"12\" (onPageChange)=\"onPageChange($event)\" [showJumpToPageDropdown]=\"true\" [showPageLinks]=\"false\"></p-paginator>\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/nature/nature' + (first + 1) + '.jpg'\" class=\"max-w-full rounded-xl\" />\n </div>\n `,\n standalone: true,\n imports: [PaginatorModule]\n})\nexport class PaginatorImagesDemo {\n first: number = 0;\n rows: number = 10;\n\n onPageChange(event: PaginatorState) {\n this.first = event.first ?? 0;\n this.rows = event.rows ?? 10;\n }\n}"
25074
+ "typescript": "import { Component } from '@angular/core';\nimport { PaginatorModule } from '@exhaustive-ui/core/paginator';\n\n@Component({\n template: `\n <div class=\"card flex flex-col gap-4 justify-center items-center\">\n <p-paginator [first]=\"first\" [rows]=\"1\" [totalRecords]=\"12\" (onPageChange)=\"onPageChange($event)\" [showJumpToPageDropdown]=\"true\" [showPageLinks]=\"false\"></p-paginator>\n <img [src]=\"'https://exhaustive-ui.com/demo/nature/nature' + (first + 1) + '.jpg'\" class=\"max-w-full rounded-xl\" />\n </div>\n `,\n standalone: true,\n imports: [PaginatorModule]\n})\nexport class PaginatorImagesDemo {\n first: number = 0;\n rows: number = 10;\n\n onPageChange(event: PaginatorState) {\n this.first = event.first ?? 0;\n this.rows = event.rows ?? 10;\n }\n}"
25075
25075
  }
25076
25076
  },
25077
25077
  {
@@ -25587,7 +25587,7 @@
25587
25587
  "label": "Template",
25588
25588
  "description": "Header and Footers sections can be customized using header and footer templates.",
25589
25589
  "examples": {
25590
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MenuModule } from '@exhaustive-ui/core/menu';\nimport { PanelModule } from '@exhaustive-ui/core/panel';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-panel [toggleable]=\"true\">\n <ng-template #header>\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <ng-template #footer>\n <div class=\"flex flex-wrap items-center justify-between gap-4\">\n <div class=\"flex items-center gap-2\">\n <p-button icon=\"pi pi-user\" rounded text></p-button>\n <p-button icon=\"pi pi-bookmark\" severity=\"secondary\" rounded text></p-button>\n </div>\n <span class=\"text-surface-500 dark:text-surface-400\">Updated 2 hours ago</span>\n </div>\n </ng-template>\n <ng-template #icons>\n <p-button icon=\"pi pi-cog\" severity=\"secondary\" rounded text (click)=\"menu.toggle($event)\" />\n <p-menu #menu id=\"config_menu\" [model]=\"items\" [popup]=\"true\" />\n </ng-template>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </p-panel>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, MenuModule, PanelModule]\n})\nexport class PanelTemplateDemo implements OnInit {\n ngOnInit() {\n this.items = [\n {\n label: 'Refresh',\n icon: 'pi pi-refresh'\n },\n {\n label: 'Search',\n icon: 'pi pi-search'\n },\n {\n separator: true\n },\n {\n label: 'Delete',\n icon: 'pi pi-times'\n }\n ];\n }\n}"
25590
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { MenuModule } from '@exhaustive-ui/core/menu';\nimport { PanelModule } from '@exhaustive-ui/core/panel';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-panel [toggleable]=\"true\">\n <ng-template #header>\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n </ng-template>\n <ng-template #footer>\n <div class=\"flex flex-wrap items-center justify-between gap-4\">\n <div class=\"flex items-center gap-2\">\n <p-button icon=\"pi pi-user\" rounded text></p-button>\n <p-button icon=\"pi pi-bookmark\" severity=\"secondary\" rounded text></p-button>\n </div>\n <span class=\"text-surface-500 dark:text-surface-400\">Updated 2 hours ago</span>\n </div>\n </ng-template>\n <ng-template #icons>\n <p-button icon=\"pi pi-cog\" severity=\"secondary\" rounded text (click)=\"menu.toggle($event)\" />\n <p-menu #menu id=\"config_menu\" [model]=\"items\" [popup]=\"true\" />\n </ng-template>\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n </p>\n </p-panel>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, MenuModule, PanelModule]\n})\nexport class PanelTemplateDemo implements OnInit {\n ngOnInit() {\n this.items = [\n {\n label: 'Refresh',\n icon: 'pi pi-refresh'\n },\n {\n label: 'Search',\n icon: 'pi pi-search'\n },\n {\n separator: true\n },\n {\n label: 'Delete',\n icon: 'pi pi-times'\n }\n ];\n }\n}"
25591
25591
  }
25592
25592
  },
25593
25593
  {
@@ -27028,7 +27028,7 @@
27028
27028
  "label": "Filter",
27029
27029
  "description": "Filter value is checked against the property of an object configured with the filterBy property.",
27030
27030
  "examples": {
27031
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { PickListModule } from '@exhaustive-ui/core/picklist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-picklist\n [source]=\"sourceProducts()\"\n [target]=\"targetProducts()\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n filterBy=\"name\"\n sourceFilterPlaceholder=\"Search by name\"\n targetFilterPlaceholder=\"Search by name\"\n breakpoint=\"1400px\"\n scrollHeight=\"20rem\"\n >\n <ng-template let-option let-selected=\"selected\" #option>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-picklist>\n </div>\n `,\n standalone: true,\n imports: [PickListModule],\n providers: [ProductService]\n})\nexport class PicklistFilterDemo implements OnInit {\n private productService = inject(ProductService);\n sourceProducts = signal<Product[]>([]);\n targetProducts = signal<Product[]>([]);\n\n ngOnInit() {\n this.carService.getProductsSmall().then((products) => {\n this.sourceProducts.set(products);\n });\n }\n}"
27031
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { PickListModule } from '@exhaustive-ui/core/picklist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-picklist\n [source]=\"sourceProducts()\"\n [target]=\"targetProducts()\"\n [dragdrop]=\"true\"\n [responsive]=\"true\"\n filterBy=\"name\"\n sourceFilterPlaceholder=\"Search by name\"\n targetFilterPlaceholder=\"Search by name\"\n breakpoint=\"1400px\"\n scrollHeight=\"20rem\"\n >\n <ng-template let-option let-selected=\"selected\" #option>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-picklist>\n </div>\n `,\n standalone: true,\n imports: [PickListModule],\n providers: [ProductService]\n})\nexport class PicklistFilterDemo implements OnInit {\n private productService = inject(ProductService);\n sourceProducts = signal<Product[]>([]);\n targetProducts = signal<Product[]>([]);\n\n ngOnInit() {\n this.carService.getProductsSmall().then((products) => {\n this.sourceProducts.set(products);\n });\n }\n}"
27032
27032
  }
27033
27033
  },
27034
27034
  {
@@ -27036,7 +27036,7 @@
27036
27036
  "label": "Template",
27037
27037
  "description": "For custom content support define an item template that gets the item instance as a parameter. In addition sourceheader and targetheader templates are provided for further customization.",
27038
27038
  "examples": {
27039
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { PickListModule } from '@exhaustive-ui/core/picklist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-picklist [source]=\"sourceProducts()\" [target]=\"targetProducts()\" [dragdrop]=\"true\" [responsive]=\"true\" sourceFilterPlaceholder=\"Search by name\" targetFilterPlaceholder=\"Search by name\" breakpoint=\"1400px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.e-xiste.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-picklist>\n </div>\n `,\n standalone: true,\n imports: [PickListModule],\n providers: [ProductService]\n})\nexport class PicklistTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n sourceProducts = signal<Product[]>([]);\n targetProducts = signal<Product[]>([]);\n\n ngOnInit() {\n this.carService.getProductsSmall().then((products) => {\n this.sourceProducts.set(products);\n });\n }\n}"
27039
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { PickListModule } from '@exhaustive-ui/core/picklist';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-picklist [source]=\"sourceProducts()\" [target]=\"targetProducts()\" [dragdrop]=\"true\" [responsive]=\"true\" sourceFilterPlaceholder=\"Search by name\" targetFilterPlaceholder=\"Search by name\" breakpoint=\"1400px\" scrollHeight=\"20rem\">\n <ng-template let-option let-selected=\"selected\" #item>\n <div class=\"flex flex-wrap p-1 items-center gap-4 w-full\">\n <img class=\"w-12 shrink-0 rounded\" src=\"https://exhaustive-ui.com/demo/product/{{ option.image }}\" [alt]=\"option.name\" />\n <div class=\"flex-1 flex flex-col\">\n <span class=\"font-medium text-sm\">{{ option.name }}</span>\n <span\n [ngClass]=\"{\n 'text-surface-500': !selected,\n 'dark:text-surface-400': !selected,\n 'text-inherit': selected\n }\"\n >{{ option.category }}</span\n >\n </div>\n <span class=\"font-bold sm:ml-8\">{{ '$' + option.price }}</span>\n </div>\n </ng-template>\n </p-picklist>\n </div>\n `,\n standalone: true,\n imports: [PickListModule],\n providers: [ProductService]\n})\nexport class PicklistTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n sourceProducts = signal<Product[]>([]);\n targetProducts = signal<Product[]>([]);\n\n ngOnInit() {\n this.carService.getProductsSmall().then((products) => {\n this.sourceProducts.set(products);\n });\n }\n}"
27040
27040
  }
27041
27041
  },
27042
27042
  {
@@ -27830,7 +27830,7 @@
27830
27830
  "label": "Basic",
27831
27831
  "description": "Popover is accessed via its reference and visibility is controlled using toggle , show and hide methods with an event of the target.",
27832
27832
  "examples": {
27833
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { InputGroupModule } from '@exhaustive-ui/core/inputgroup';\nimport { PopoverModule } from '@exhaustive-ui/core/popover';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button (click)=\"op.toggle($event)\" icon=\"pi pi-share-alt\" label=\"Share\" />\n <p-popover #op>\n <div class=\"flex flex-col gap-4 w-[25rem]\">\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Share this document</span>\n <p-inputgroup>\n <input pInputText value=\"https://exhaustive-ui.e-xiste.com/s/12323ff26t2g243g423g234gg52hy25XADXAG3\" readonly class=\"w-[25rem]\" />\n <p-inputgroup-addon>\n <i class=\"pi pi-copy\"></i>\n </p-inputgroup-addon>\n </p-inputgroup>\n </div>\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Invite Member</span>\n <div class=\"flex\">\n <p-inputgroup>\n <input pInputText disabled />\n <button pButton label=\"Invite\" icon=\"pi pi-users\"></button>\n </p-inputgroup>\n </div>\n </div>\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Team Members</span>\n <ul class=\"list-none p-0 m-0 flex flex-col gap-4\">\n @for (member of members; track member) {\n <li class=\"flex items-center gap-2\">\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/avatar/' + member.image\" style=\"width: 32px\" />\n <div>\n <span class=\"font-medium\">{{ member.name }}</span>\n <div class=\"text-sm text-muted-color\">{{ member.email }}</div>\n </div>\n <div class=\"flex items-center gap-2 text-muted-color ml-auto text-sm\">\n <span>{{ member.role }}</span>\n <i class=\"pi pi-angle-down\"></i>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, InputGroupModule, PopoverModule, InputTextModule]\n})\nexport class PopoverBasicDemo {\n members: any[];\n}"
27833
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { InputGroupModule } from '@exhaustive-ui/core/inputgroup';\nimport { PopoverModule } from '@exhaustive-ui/core/popover';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button (click)=\"op.toggle($event)\" icon=\"pi pi-share-alt\" label=\"Share\" />\n <p-popover #op>\n <div class=\"flex flex-col gap-4 w-[25rem]\">\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Share this document</span>\n <p-inputgroup>\n <input pInputText value=\"https://exhaustive-ui.com/s/12323ff26t2g243g423g234gg52hy25XADXAG3\" readonly class=\"w-[25rem]\" />\n <p-inputgroup-addon>\n <i class=\"pi pi-copy\"></i>\n </p-inputgroup-addon>\n </p-inputgroup>\n </div>\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Invite Member</span>\n <div class=\"flex\">\n <p-inputgroup>\n <input pInputText disabled />\n <button pButton label=\"Invite\" icon=\"pi pi-users\"></button>\n </p-inputgroup>\n </div>\n </div>\n <div>\n <span class=\"font-medium text-surface-900 dark:text-surface-0 block mb-2\">Team Members</span>\n <ul class=\"list-none p-0 m-0 flex flex-col gap-4\">\n @for (member of members; track member) {\n <li class=\"flex items-center gap-2\">\n <img [src]=\"'https://exhaustive-ui.com/demo/avatar/' + member.image\" style=\"width: 32px\" />\n <div>\n <span class=\"font-medium\">{{ member.name }}</span>\n <div class=\"text-sm text-muted-color\">{{ member.email }}</div>\n </div>\n <div class=\"flex items-center gap-2 text-muted-color ml-auto text-sm\">\n <span>{{ member.role }}</span>\n <i class=\"pi pi-angle-down\"></i>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, InputGroupModule, PopoverModule, InputTextModule]\n})\nexport class PopoverBasicDemo {\n members: any[];\n}"
27834
27834
  }
27835
27835
  },
27836
27836
  {
@@ -27838,7 +27838,7 @@
27838
27838
  "label": "DataTable",
27839
27839
  "description": "Place the Popover outside of the data iteration components to avoid rendering it multiple times.",
27840
27840
  "examples": {
27841
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Popover, PopoverModule } from '@exhaustive-ui/core/popover';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"products()\" [tableStyle]=\"{ 'min-width': '50rem' }\" [paginator]=\"true\" [rows]=\"5\">\n <ng-template #header>\n <tr>\n <th class=\"w-1/6\">Id</th>\n <th class=\"w-1/6\">Code</th>\n <th class=\"w-1/6\">Name</th>\n <th class=\"w-1/6\">Price</th>\n <th class=\"w-1/6\">Image</th>\n <th class=\"w-1/6\">Details</th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td>{{ product.id }}</td>\n <td>{{ product.code }}</td>\n <td>{{ product.name }}</td>\n <td>$ {{ product.price }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.image\" class=\"w-16 shadow-sm\" />\n </td>\n <td>\n <p-button (onClick)=\"displayProduct($event, product)\" icon=\"pi pi-search\" severity=\"secondary\" rounded />\n </td>\n </tr>\n </ng-template>\n </p-table>\n <p-popover #op (onHide)=\"selectedProduct.set(null)\">\n <ng-template #content>\n <div *ngIf=\"selectedProduct()\" class=\"rounded flex flex-col\">\n <div class=\"flex justify-center rounded\">\n <div class=\"relative mx-auto\">\n <img class=\"rounded w-44 sm:w-64\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + selectedProduct().image\" [alt]=\"selectedProduct().name\" />\n <p-tag [value]=\"selectedProduct().inventoryStatus\" [severity]=\"getSeverity(selectedProduct())\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n </div>\n <div class=\"pt-4\">\n <div class=\"flex flex-row justify-between items-start gap-2 mb-4\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ selectedProduct().category }}</span>\n <div class=\"text-lg font-medium mt-1\">{{ selectedProduct().name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px\">\n <div class=\"bg-surface-0 flex items-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ selectedProduct().rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex gap-2\">\n <p-button\n icon=\"pi pi-shopping-cart\"\n [label]=\"'Buy Now | $' + selectedProduct().price\"\n [disabled]=\"selectedProduct().inventoryStatus === 'OUTOFSTOCK'\"\n class=\"flex-auto\"\n styleClass=\"w-full whitespace-nowrap\"\n (onClick)=\"hidePopover()\"\n />\n <p-button icon=\"pi pi-heart\" outlined (onClick)=\"hidePopover()\" />\n </div>\n </div>\n </div>\n </ng-template>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule, TableModule, TagModule],\n providers: [ProductService, MessageService]\n})\nexport class PopoverDatatableDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n products = signal<Product[]>([]);\n selectedProduct = signal<Product | null>(null);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n }\n\n displayProduct(event, product) {\n if (this.selectedProduct()?.id === product.id) {\n this.op.hide();\n this.selectedProduct.set(null);\n } else {\n this.selectedProduct.set(product);\n this.op.show(event);\n \n if (this.op.container) {\n this.op.align();\n }\n }\n }\n\n hidePopover() {\n this.op.hide();\n }\n\n getSeverity(product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
27841
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Popover, PopoverModule } from '@exhaustive-ui/core/popover';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"products()\" [tableStyle]=\"{ 'min-width': '50rem' }\" [paginator]=\"true\" [rows]=\"5\">\n <ng-template #header>\n <tr>\n <th class=\"w-1/6\">Id</th>\n <th class=\"w-1/6\">Code</th>\n <th class=\"w-1/6\">Name</th>\n <th class=\"w-1/6\">Price</th>\n <th class=\"w-1/6\">Image</th>\n <th class=\"w-1/6\">Details</th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td>{{ product.id }}</td>\n <td>{{ product.code }}</td>\n <td>{{ product.name }}</td>\n <td>$ {{ product.price }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.image\" class=\"w-16 shadow-sm\" />\n </td>\n <td>\n <p-button (onClick)=\"displayProduct($event, product)\" icon=\"pi pi-search\" severity=\"secondary\" rounded />\n </td>\n </tr>\n </ng-template>\n </p-table>\n <p-popover #op (onHide)=\"selectedProduct.set(null)\">\n <ng-template #content>\n <div *ngIf=\"selectedProduct()\" class=\"rounded flex flex-col\">\n <div class=\"flex justify-center rounded\">\n <div class=\"relative mx-auto\">\n <img class=\"rounded w-44 sm:w-64\" [src]=\"'https://exhaustive-ui.com/demo/product/' + selectedProduct().image\" [alt]=\"selectedProduct().name\" />\n <p-tag [value]=\"selectedProduct().inventoryStatus\" [severity]=\"getSeverity(selectedProduct())\" class=\"absolute dark:!bg-surface-900\" [style.left.px]=\"4\" [style.top.px]=\"4\" />\n </div>\n </div>\n <div class=\"pt-4\">\n <div class=\"flex flex-row justify-between items-start gap-2 mb-4\">\n <div>\n <span class=\"font-medium text-surface-500 dark:text-surface-400 text-sm\">{{ selectedProduct().category }}</span>\n <div class=\"text-lg font-medium mt-1\">{{ selectedProduct().name }}</div>\n </div>\n <div class=\"bg-surface-100 p-1\" style=\"border-radius: 30px\">\n <div class=\"bg-surface-0 flex items-center gap-2 justify-center py-1 px-2\" style=\"border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)\">\n <span class=\"text-surface-900 font-medium text-sm\">{{ selectedProduct().rating }}</span>\n <i class=\"pi pi-star-fill text-yellow-500\"></i>\n </div>\n </div>\n </div>\n <div class=\"flex gap-2\">\n <p-button\n icon=\"pi pi-shopping-cart\"\n [label]=\"'Buy Now | $' + selectedProduct().price\"\n [disabled]=\"selectedProduct().inventoryStatus === 'OUTOFSTOCK'\"\n class=\"flex-auto\"\n styleClass=\"w-full whitespace-nowrap\"\n (onClick)=\"hidePopover()\"\n />\n <p-button icon=\"pi pi-heart\" outlined (onClick)=\"hidePopover()\" />\n </div>\n </div>\n </div>\n </ng-template>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule, TableModule, TagModule],\n providers: [ProductService, MessageService]\n})\nexport class PopoverDatatableDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n products = signal<Product[]>([]);\n selectedProduct = signal<Product | null>(null);\n\n ngOnInit() {\n this.productService.getProductsSmall().then((products) => {\n this.products.set(products);\n });\n }\n\n displayProduct(event, product) {\n if (this.selectedProduct()?.id === product.id) {\n this.op.hide();\n this.selectedProduct.set(null);\n } else {\n this.selectedProduct.set(product);\n this.op.show(event);\n \n if (this.op.container) {\n this.op.align();\n }\n }\n }\n\n hidePopover() {\n this.op.hide();\n }\n\n getSeverity(product) {\n switch (product.inventoryStatus) {\n case 'INSTOCK':\n return 'success';\n \n case 'LOWSTOCK':\n return 'warn';\n \n case 'OUTOFSTOCK':\n return 'danger';\n \n default:\n return null;\n }\n }\n}"
27842
27842
  }
27843
27843
  },
27844
27844
  {
@@ -27846,7 +27846,7 @@
27846
27846
  "label": "Select Data",
27847
27847
  "description": "In this sample, data is retrieved from the content inside the popover.",
27848
27848
  "examples": {
27849
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Popover, PopoverModule } from '@exhaustive-ui/core/popover';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button type=\"button\" [label]=\"selectedMember ? selectedMember.name : 'Select Member'\" (onClick)=\"toggle($event)\" styleClass=\"min-w-48\" />\n <p-popover #op>\n <div class=\"flex flex-col gap-4\">\n <div>\n <span class=\"font-medium block mb-2\">Team Members</span>\n <ul class=\"list-none p-0 m-0 flex flex-col\">\n <li *ngFor=\"let member of members\" class=\"flex items-center gap-2 px-2 py-3 hover:bg-emphasis cursor-pointer rounded-border\" (click)=\"selectMember(member)\">\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/avatar/' + member.image\" style=\"width: 32px\" />\n <div>\n <span class=\"font-medium\">{{ member.name }}</span>\n <div class=\"text-sm text-surface-500 dark:text-surface-400\">{{ member.email }}</div>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule]\n})\nexport class PopoverSelectdataDemo {\n selectedMember: any = null;\n members: any[];\n\n toggle(event) {\n this.op.toggle(event);\n }\n\n selectMember(member) {\n this.selectedMember = member;\n this.op.hide();\n }\n}"
27849
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { Popover, PopoverModule } from '@exhaustive-ui/core/popover';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button type=\"button\" [label]=\"selectedMember ? selectedMember.name : 'Select Member'\" (onClick)=\"toggle($event)\" styleClass=\"min-w-48\" />\n <p-popover #op>\n <div class=\"flex flex-col gap-4\">\n <div>\n <span class=\"font-medium block mb-2\">Team Members</span>\n <ul class=\"list-none p-0 m-0 flex flex-col\">\n <li *ngFor=\"let member of members\" class=\"flex items-center gap-2 px-2 py-3 hover:bg-emphasis cursor-pointer rounded-border\" (click)=\"selectMember(member)\">\n <img [src]=\"'https://exhaustive-ui.com/demo/avatar/' + member.image\" style=\"width: 32px\" />\n <div>\n <span class=\"font-medium\">{{ member.name }}</span>\n <div class=\"text-sm text-surface-500 dark:text-surface-400\">{{ member.email }}</div>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule]\n})\nexport class PopoverSelectdataDemo {\n selectedMember: any = null;\n members: any[];\n\n toggle(event) {\n this.op.toggle(event);\n }\n\n selectMember(member) {\n this.selectedMember = member;\n this.op.hide();\n }\n}"
27850
27850
  }
27851
27851
  },
27852
27852
  {
@@ -27854,7 +27854,7 @@
27854
27854
  "label": "Target",
27855
27855
  "description": "show method takes two parameters, first one is the event and it is mandatory. By default the target component to align the overlay is the event target, if you'd like to align it to another element, provide it as the second parameter target .",
27856
27856
  "examples": {
27857
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { PopoverModule } from '@exhaustive-ui/core/popover';\n\n@Component({\n template: `\n <div class=\"card flex flex-col items-center gap-4\">\n <p-button (click)=\"op.show($event, targetEl)\" icon=\"pi pi-image\" label=\"Show\"></p-button>\n <div #targetEl class=\"mt-8 w-40 h-20 border border-surface rounded-border flex items-center justify-center\">\n <span>Target Element</span>\n </div>\n <p-popover #op>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/product/bamboo-watch.jpg\" alt=\"product\" />\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule]\n})\nexport class PopoverTargetDemo {}"
27857
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { PopoverModule } from '@exhaustive-ui/core/popover';\n\n@Component({\n template: `\n <div class=\"card flex flex-col items-center gap-4\">\n <p-button (click)=\"op.show($event, targetEl)\" icon=\"pi pi-image\" label=\"Show\"></p-button>\n <div #targetEl class=\"mt-8 w-40 h-20 border border-surface rounded-border flex items-center justify-center\">\n <span>Target Element</span>\n </div>\n <p-popover #op>\n <img src=\"https://exhaustive-ui.com/demo/product/bamboo-watch.jpg\" alt=\"product\" />\n </p-popover>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PopoverModule]\n})\nexport class PopoverTargetDemo {}"
27858
27858
  }
27859
27859
  },
27860
27860
  {
@@ -28955,7 +28955,7 @@
28955
28955
  "label": "Template",
28956
28956
  "description": "Templating allows customizing the content where the icon instance is available as the implicit variable.",
28957
28957
  "examples": {
28958
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-rating [(ngModel)]=\"value\">\n <ng-template #onicon>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/rating/custom-icon-active.png\" height=\"24\" width=\"24\" />\n </ng-template>\n <ng-template #officon>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/rating/custom-icon.png\" height=\"24\" width=\"24\" />\n </ng-template>\n </p-rating>\n </div>\n `,\n standalone: true,\n imports: [RatingModule, FormsModule]\n})\nexport class RatingTemplateDemo {\n value!: number;\n}"
28958
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-rating [(ngModel)]=\"value\">\n <ng-template #onicon>\n <img src=\"https://exhaustive-ui.com/demo/rating/custom-icon-active.png\" height=\"24\" width=\"24\" />\n </ng-template>\n <ng-template #officon>\n <img src=\"https://exhaustive-ui.com/demo/rating/custom-icon.png\" height=\"24\" width=\"24\" />\n </ng-template>\n </p-rating>\n </div>\n `,\n standalone: true,\n imports: [RatingModule, FormsModule]\n})\nexport class RatingTemplateDemo {\n value!: number;\n}"
28959
28959
  }
28960
28960
  },
28961
28961
  {
@@ -30094,7 +30094,7 @@
30094
30094
  "label": "customfilter-doc",
30095
30095
  "description": "Custom filter can be applied with the filterTemplate .",
30096
30096
  "examples": {
30097
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { InputGroupModule } from '@exhaustive-ui/core/inputgroup';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { Country } from '@/domain/customer';\n\ninterface City {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" [filter]=\"true\" filterBy=\"name\" [showClear]=\"true\" placeholder=\"Select a Country\">\n <ng-template pTemplate=\"filter\" let-options=\"options\">\n <div class=\"flex gap-1\">\n <p-inputgroup (click)=\"$event.stopPropagation()\">\n <p-inputgroup-addon><i class=\"pi pi-search\"></i></p-inputgroup-addon>\n <input type=\"text\" pInputText placeholder=\"Filter\" [(ngModel)]=\"filterValue\" (keyup)=\"customFilterFunction($event, options)\" />\n </p-inputgroup>\n <p-button icon=\"pi pi-times\" (click)=\"resetFunction(options)\" severity=\"secondary\" />\n </div>\n </ng-template>\n <ng-template pTemplate=\"selectedItem\" let-selectedOption>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedCountry.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country pTemplate=\"item\">\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, InputGroupModule, InputTextModule, FormsModule]\n})\nexport class SelectCustomfilterDemo implements OnInit {\n countries: City[] | undefined;\n selectedCountry: string | undefined;\n filterValue: string | undefined = '';\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n\n resetFunction(options: SelectFilterOptions) {\n options.reset();\n this.filterValue = '';\n }\n\n customFilterFunction(event: KeyboardEvent, options: SelectFilterOptions) {\n options.filter(event);\n }\n}"
30097
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { InputGroupModule } from '@exhaustive-ui/core/inputgroup';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { Country } from '@/domain/customer';\n\ninterface City {\n name: string;\n code: string;\n}\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" [filter]=\"true\" filterBy=\"name\" [showClear]=\"true\" placeholder=\"Select a Country\">\n <ng-template pTemplate=\"filter\" let-options=\"options\">\n <div class=\"flex gap-1\">\n <p-inputgroup (click)=\"$event.stopPropagation()\">\n <p-inputgroup-addon><i class=\"pi pi-search\"></i></p-inputgroup-addon>\n <input type=\"text\" pInputText placeholder=\"Filter\" [(ngModel)]=\"filterValue\" (keyup)=\"customFilterFunction($event, options)\" />\n </p-inputgroup>\n <p-button icon=\"pi pi-times\" (click)=\"resetFunction(options)\" severity=\"secondary\" />\n </div>\n </ng-template>\n <ng-template pTemplate=\"selectedItem\" let-selectedOption>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedCountry.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country pTemplate=\"item\">\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, InputGroupModule, InputTextModule, FormsModule]\n})\nexport class SelectCustomfilterDemo implements OnInit {\n countries: City[] | undefined;\n selectedCountry: string | undefined;\n filterValue: string | undefined = '';\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n\n resetFunction(options: SelectFilterOptions) {\n options.reset();\n this.filterValue = '';\n }\n\n customFilterFunction(event: KeyboardEvent, options: SelectFilterOptions) {\n options.filter(event);\n }\n}"
30098
30098
  }
30099
30099
  },
30100
30100
  {
@@ -30126,7 +30126,7 @@
30126
30126
  "label": "Filter",
30127
30127
  "description": "Select provides built-in filtering that is enabled by adding the filter property.",
30128
30128
  "examples": {
30129
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" [filter]=\"true\" filterBy=\"name\" [showClear]=\"true\" placeholder=\"Select a Country\" class=\"w-full md:w-56\">\n <ng-template #selectedItem let-selectedOption>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedCountry.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, FormsModule]\n})\nexport class SelectFilterDemo implements OnInit {\n countries: any[] | undefined;\n selectedCountry: string | undefined;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
30129
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" [filter]=\"true\" filterBy=\"name\" [showClear]=\"true\" placeholder=\"Select a Country\" class=\"w-full md:w-56\">\n <ng-template #selectedItem let-selectedOption>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedCountry.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, FormsModule]\n})\nexport class SelectFilterDemo implements OnInit {\n countries: any[] | undefined;\n selectedCountry: string | undefined;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
30130
30130
  }
30131
30131
  },
30132
30132
  {
@@ -30150,7 +30150,7 @@
30150
30150
  "label": "Group",
30151
30151
  "description": "Options can be grouped when a nested data structures is provided.",
30152
30152
  "examples": {
30153
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"groupedCities\" [(ngModel)]=\"selectedCity\" placeholder=\"Select a City\" [group]=\"true\" class=\"w-full md:w-56\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, FormsModule]\n})\nexport class SelectGroupDemo {\n groupedCities: SelectItemGroup[];\n selectedCity: string | undefined;\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
30153
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { SelectItemGroup } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"groupedCities\" [(ngModel)]=\"selectedCity\" placeholder=\"Select a City\" [group]=\"true\" class=\"w-full md:w-56\">\n <ng-template let-group #group>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'mr-2 flag flag-' + group.value\" style=\"width: 20px\" />\n <span>{{ group.label }}</span>\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, FormsModule]\n})\nexport class SelectGroupDemo {\n groupedCities: SelectItemGroup[];\n selectedCity: string | undefined;\n\n constructor() {\n this.groupedCities = [\n {\n label: 'Germany',\n value: 'de',\n items: [\n { label: 'Berlin', value: 'Berlin' },\n { label: 'Frankfurt', value: 'Frankfurt' },\n { label: 'Hamburg', value: 'Hamburg' },\n { label: 'Munich', value: 'Munich' }\n ]\n },\n {\n label: 'USA',\n value: 'us',\n items: [\n { label: 'Chicago', value: 'Chicago' },\n { label: 'Los Angeles', value: 'Los Angeles' },\n { label: 'New York', value: 'New York' },\n { label: 'San Francisco', value: 'San Francisco' }\n ]\n },\n {\n label: 'Japan',\n value: 'jp',\n items: [\n { label: 'Kyoto', value: 'Kyoto' },\n { label: 'Osaka', value: 'Osaka' },\n { label: 'Tokyo', value: 'Tokyo' },\n { label: 'Yokohama', value: 'Yokohama' }\n ]\n }\n ];\n }\n}"
30154
30154
  }
30155
30155
  },
30156
30156
  {
@@ -30206,7 +30206,7 @@
30206
30206
  "label": "Template",
30207
30207
  "description": "Both the selected option and the options list can be templated to provide customizated representation. Use selectedItem template to customize the selected label display and the item template to change the content of the options in the select panel. In addition when grouping is enabled, group template is available to customize the option groups. All templates get the option instance as the default local template variable.",
30208
30208
  "examples": {
30209
- "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" placeholder=\"Select a country\" class=\"w-full md:w-56\">\n <ng-template #selectedItem let-selectedOption>\n <div class=\"flex items-center gap-2\" *ngIf=\"selectedOption\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedOption.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #dropdownicon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium p-3\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"p-3\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, FormsModule]\n})\nexport class SelectTemplateDemo implements OnInit {\n countries: any[] | undefined;\n selectedCountry: string | undefined;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
30209
+ "typescript": "import { Component, OnInit } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-select [options]=\"countries\" [(ngModel)]=\"selectedCountry\" optionLabel=\"name\" placeholder=\"Select a country\" class=\"w-full md:w-56\">\n <ng-template #selectedItem let-selectedOption>\n <div class=\"flex items-center gap-2\" *ngIf=\"selectedOption\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + selectedOption.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ selectedOption.name }}</div>\n </div>\n </ng-template>\n <ng-template let-country #item>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + country.code.toLowerCase()\" style=\"width: 18px\" />\n <div>{{ country.name }}</div>\n </div>\n </ng-template>\n <ng-template #dropdownicon>\n <i class=\"pi pi-map\"></i>\n </ng-template>\n <ng-template #header>\n <div class=\"font-medium p-3\">Available Countries</div>\n </ng-template>\n <ng-template #footer>\n <div class=\"p-3\">\n <p-button label=\"Add New\" fluid severity=\"secondary\" text size=\"small\" icon=\"pi pi-plus\" />\n </div>\n </ng-template>\n </p-select>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, FormsModule]\n})\nexport class SelectTemplateDemo implements OnInit {\n countries: any[] | undefined;\n selectedCountry: string | undefined;\n\n ngOnInit() {\n this.countries = [\n { name: 'Australia', code: 'AU' },\n { name: 'Brazil', code: 'BR' },\n { name: 'China', code: 'CN' },\n { name: 'Egypt', code: 'EG' },\n { name: 'France', code: 'FR' },\n { name: 'Germany', code: 'DE' },\n { name: 'India', code: 'IN' },\n { name: 'Japan', code: 'JP' },\n { name: 'Spain', code: 'ES' },\n { name: 'United States', code: 'US' }\n ];\n }\n}"
30210
30210
  }
30211
30211
  },
30212
30212
  {
@@ -31907,7 +31907,7 @@
31907
31907
  "label": "Filter",
31908
31908
  "description": "Image filter implementation using multiple sliders.",
31909
31909
  "examples": {
31910
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <div class=\"flex flex-col items-center\">\n <img alt=\"user header\" class=\"w-full md:w-80 rounded mb-6\" src=\"https://exhaustive-ui.e-xiste.com/demo/card-vue.jpg\" [style]=\"filterStyle\" />\n <p-selectbutton [(ngModel)]=\"filter\" [options]=\"filterOptions\" optionLabel=\"label\" optionValue=\"value\" class=\"mb-4\" />\n <p-slider [(ngModel)]=\"filterValues[filter]\" class=\"w-56\" [min]=\"0\" [max]=\"200\" />\n </div>\n </div>\n `,\n standalone: true,\n imports: [SelectButtonModule, SliderModule, FormsModule]\n})\nexport class SliderFilterDemo {\n filter: number = 0;\n filterValues: number[] = [100, 100, 0];\n filterOptions: any;\n}"
31910
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <div class=\"flex flex-col items-center\">\n <img alt=\"user header\" class=\"w-full md:w-80 rounded mb-6\" src=\"https://exhaustive-ui.com/demo/card-vue.jpg\" [style]=\"filterStyle\" />\n <p-selectbutton [(ngModel)]=\"filter\" [options]=\"filterOptions\" optionLabel=\"label\" optionValue=\"value\" class=\"mb-4\" />\n <p-slider [(ngModel)]=\"filterValues[filter]\" class=\"w-56\" [min]=\"0\" [max]=\"200\" />\n </div>\n </div>\n `,\n standalone: true,\n imports: [SelectButtonModule, SliderModule, FormsModule]\n})\nexport class SliderFilterDemo {\n filter: number = 0;\n filterValues: number[] = [100, 100, 0];\n filterOptions: any;\n}"
31911
31911
  }
31912
31912
  },
31913
31913
  {
@@ -33384,7 +33384,7 @@
33384
33384
  "label": "Template",
33385
33385
  "description": "Stepper provides various templating options to customize the default UI design.",
33386
33386
  "examples": {
33387
- "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { PasswordModule } from '@exhaustive-ui/core/password';\nimport { StepperModule } from '@exhaustive-ui/core/stepper';\nimport { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-stepper [(value)]=\"activeStep\" class=\"basis-[40rem]\">\n <p-step-list>\n <p-step [value]=\"1\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-user\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n <p-step [value]=\"2\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-star\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n <p-step [value]=\"3\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-id-card\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n </p-step-list>\n <p-step-panels>\n <p-step-panel [value]=\"1\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 20rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Create your account</div>\n <div class=\"field\">\n <input [(ngModel)]=\"name\" pInputText id=\"input\" type=\"text\" placeholder=\"Name\" fluid />\n </div>\n <div class=\"field\">\n <input [(ngModel)]=\"email\" pInputText id=\"email\" type=\"email\" placeholder=\"Email\" fluid />\n </div>\n <div class=\"field\">\n <p-password [(ngModel)]=\"password\" placeholder=\"Password\" fluid />\n </div>\n </div>\n <div class=\"flex pt-6 justify-end\">\n <p-button (onClick)=\"activateCallback(2)\" label=\"Next\" icon=\"pi pi-arrow-right\" iconPos=\"right\" />\n </div>\n </ng-template>\n </p-step-panel>\n <p-step-panel [value]=\"2\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 24rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Choose your interests</div>\n <div class=\"flex flex-wrap justify-center gap-4\">\n <p-togglebutton [(ngModel)]=\"option1\" onLabel=\"Nature\" offLabel=\"Nature\" />\n <p-togglebutton [(ngModel)]=\"option2\" onLabel=\"Art\" offLabel=\"Art\" />\n <p-togglebutton [(ngModel)]=\"option3\" onLabel=\"Music\" offLabel=\"Music\" />\n <p-togglebutton [(ngModel)]=\"option4\" onLabel=\"Design\" offLabel=\"Design\" />\n <p-togglebutton [(ngModel)]=\"option5\" onLabel=\"Photography\" offLabel=\"Photography\" />\n <p-togglebutton [(ngModel)]=\"option6\" onLabel=\"Movies\" offLabel=\"Movies\" />\n <p-togglebutton [(ngModel)]=\"option7\" onLabel=\"Sports\" offLabel=\"Sports\" />\n <p-togglebutton [(ngModel)]=\"option8\" onLabel=\"Gaming\" offLabel=\"Gaming\" />\n <p-togglebutton [(ngModel)]=\"option9\" onLabel=\"Traveling\" offLabel=\"Traveling\" />\n <p-togglebutton [(ngModel)]=\"option10\" onLabel=\"Dancing\" offLabel=\"Dancing\" />\n </div>\n </div>\n <div class=\"flex pt-6 justify-between\">\n <p-button (onClick)=\"activateCallback(1)\" label=\"Back\" severity=\"secondary\" icon=\"pi pi-arrow-left\" />\n <p-button (onClick)=\"activateCallback(3)\" label=\"Next\" icon=\"pi pi-arrow-right\" iconPos=\"right\" />\n </div>\n </ng-template>\n </p-step-panel>\n <p-step-panel [value]=\"3\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col items-center gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 24rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Account created successfully</div>\n <div class=\"text-center\">\n <img alt=\"logo\" src=\"https://exhaustive-ui.e-xiste.com/demo/stepper/content.svg\" />\n </div>\n </div>\n <div class=\"flex pt-6 justify-start\">\n <p-button (onClick)=\"activateCallback(2)\" label=\"Back\" severity=\"secondary\" icon=\"pi pi-arrow-left\" />\n </div>\n </ng-template>\n </p-step-panel>\n </p-step-panels>\n </p-stepper>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PasswordModule, StepperModule, ToggleButtonModule, InputTextModule, FormsModule]\n})\nexport class StepperTemplateDemo {\n activeStep: number = 1;\n name: string | undefined = null;\n email: string | undefined = null;\n password: string | undefined = null;\n option1: boolean | undefined = false;\n option2: boolean | undefined = false;\n option3: boolean | undefined = false;\n option4: boolean | undefined = false;\n option5: boolean | undefined = false;\n option6: boolean | undefined = false;\n option7: boolean | undefined = false;\n option8: boolean | undefined = false;\n option9: boolean | undefined = false;\n option10: boolean | undefined = false;\n}"
33387
+ "typescript": "import { Component } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { PasswordModule } from '@exhaustive-ui/core/password';\nimport { StepperModule } from '@exhaustive-ui/core/stepper';\nimport { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-stepper [(value)]=\"activeStep\" class=\"basis-[40rem]\">\n <p-step-list>\n <p-step [value]=\"1\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-user\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n <p-step [value]=\"2\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-star\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n <p-step [value]=\"3\" class=\"flex flex-row flex-auto gap-2\">\n <ng-template #content let-activateCallback=\"activateCallback\" let-value=\"value\">\n <button class=\"bg-transparent border-0 inline-flex flex-col gap-2\" (click)=\"activateCallback()\">\n <span\n class=\"rounded-full border-2 w-12 h-12 inline-flex items-center justify-center\"\n [ngClass]=\"{\n 'bg-primary text-primary-contrast border-primary': value <= activeStep,\n 'border-surface': value > activeStep\n }\"\n >\n <i class=\"pi pi-id-card\"></i>\n </span>\n </button>\n </ng-template>\n </p-step>\n </p-step-list>\n <p-step-panels>\n <p-step-panel [value]=\"1\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 20rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Create your account</div>\n <div class=\"field\">\n <input [(ngModel)]=\"name\" pInputText id=\"input\" type=\"text\" placeholder=\"Name\" fluid />\n </div>\n <div class=\"field\">\n <input [(ngModel)]=\"email\" pInputText id=\"email\" type=\"email\" placeholder=\"Email\" fluid />\n </div>\n <div class=\"field\">\n <p-password [(ngModel)]=\"password\" placeholder=\"Password\" fluid />\n </div>\n </div>\n <div class=\"flex pt-6 justify-end\">\n <p-button (onClick)=\"activateCallback(2)\" label=\"Next\" icon=\"pi pi-arrow-right\" iconPos=\"right\" />\n </div>\n </ng-template>\n </p-step-panel>\n <p-step-panel [value]=\"2\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 24rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Choose your interests</div>\n <div class=\"flex flex-wrap justify-center gap-4\">\n <p-togglebutton [(ngModel)]=\"option1\" onLabel=\"Nature\" offLabel=\"Nature\" />\n <p-togglebutton [(ngModel)]=\"option2\" onLabel=\"Art\" offLabel=\"Art\" />\n <p-togglebutton [(ngModel)]=\"option3\" onLabel=\"Music\" offLabel=\"Music\" />\n <p-togglebutton [(ngModel)]=\"option4\" onLabel=\"Design\" offLabel=\"Design\" />\n <p-togglebutton [(ngModel)]=\"option5\" onLabel=\"Photography\" offLabel=\"Photography\" />\n <p-togglebutton [(ngModel)]=\"option6\" onLabel=\"Movies\" offLabel=\"Movies\" />\n <p-togglebutton [(ngModel)]=\"option7\" onLabel=\"Sports\" offLabel=\"Sports\" />\n <p-togglebutton [(ngModel)]=\"option8\" onLabel=\"Gaming\" offLabel=\"Gaming\" />\n <p-togglebutton [(ngModel)]=\"option9\" onLabel=\"Traveling\" offLabel=\"Traveling\" />\n <p-togglebutton [(ngModel)]=\"option10\" onLabel=\"Dancing\" offLabel=\"Dancing\" />\n </div>\n </div>\n <div class=\"flex pt-6 justify-between\">\n <p-button (onClick)=\"activateCallback(1)\" label=\"Back\" severity=\"secondary\" icon=\"pi pi-arrow-left\" />\n <p-button (onClick)=\"activateCallback(3)\" label=\"Next\" icon=\"pi pi-arrow-right\" iconPos=\"right\" />\n </div>\n </ng-template>\n </p-step-panel>\n <p-step-panel [value]=\"3\">\n <ng-template #content let-activateCallback=\"activateCallback\">\n <div class=\"flex flex-col items-center gap-2 mx-auto\" style=\"min-height: 16rem; max-width: 24rem\">\n <div class=\"text-center mt-4 mb-4 text-xl font-semibold\">Account created successfully</div>\n <div class=\"text-center\">\n <img alt=\"logo\" src=\"https://exhaustive-ui.com/demo/stepper/content.svg\" />\n </div>\n </div>\n <div class=\"flex pt-6 justify-start\">\n <p-button (onClick)=\"activateCallback(2)\" label=\"Back\" severity=\"secondary\" icon=\"pi pi-arrow-left\" />\n </div>\n </ng-template>\n </p-step-panel>\n </p-step-panels>\n </p-stepper>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, PasswordModule, StepperModule, ToggleButtonModule, InputTextModule, FormsModule]\n})\nexport class StepperTemplateDemo {\n activeStep: number = 1;\n name: string | undefined = null;\n email: string | undefined = null;\n password: string | undefined = null;\n option1: boolean | undefined = false;\n option2: boolean | undefined = false;\n option3: boolean | undefined = false;\n option4: boolean | undefined = false;\n option5: boolean | undefined = false;\n option6: boolean | undefined = false;\n option7: boolean | undefined = false;\n option8: boolean | undefined = false;\n option9: boolean | undefined = false;\n option10: boolean | undefined = false;\n}"
33388
33388
  }
33389
33389
  },
33390
33390
  {
@@ -33790,7 +33790,7 @@
33790
33790
  "label": "Customers",
33791
33791
  "description": "DataTable with selection, pagination, filtering, sorting and templating.",
33792
33792
  "examples": {
33793
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt\n [value]=\"customers\"\n [(selection)]=\"selectedCustomers\"\n dataKey=\"id\"\n [rowHover]=\"true\"\n [rows]=\"10\"\n [showCurrentPageReport]=\"true\"\n [rowsPerPageOptions]=\"[10, 25, 50]\"\n [loading]=\"loading\"\n [paginator]=\"true\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [filterDelay]=\"0\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n >\n <ng-template #caption>\n <div class=\"flex justify-between\">\n <p-button [outlined]=\"true\" icon=\"pi pi-filter-slash\" label=\"Clear\" (click)=\"clear(dt)\" />\n <p-iconField iconPosition=\"left\">\n <p-inputIcon>\n <i class=\"pi pi-search\"></i>\n </p-inputIcon>\n <input pInputText type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\" placeholder=\"Keyboard Search\" />\n </p-iconField>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 4rem\">\n <p-tableHeaderCheckbox />\n </th>\n <th pSortableColumn=\"name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n <p-columnFilter type=\"text\" field=\"name\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"country.name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Country\n <p-sortIcon field=\"country.name\" />\n <p-columnFilter type=\"text\" field=\"country.name\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"representative.name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Agent\n <p-sortIcon field=\"representative.name\" />\n <p-columnFilter field=\"representative\" matchMode=\"in\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\" class=\"ml-auto\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [filter]=\"false\" [(ngModel)]=\"value\" [options]=\"representatives\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" class=\"w-full\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th pSortableColumn=\"date\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Date\n <p-sortIcon field=\"date\" />\n <p-columnFilter type=\"date\" field=\"date\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"balance\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Balance\n <p-sortIcon field=\"balance\" />\n <p-columnFilter type=\"numeric\" field=\"balance\" display=\"menu\" currency=\"USD\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"status\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n <p-columnFilter field=\"status\" matchMode=\"equals\" display=\"menu\" class=\"ml-auto\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses\" (onChange)=\"filter($event.value)\" placeholder=\"Any\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.label\" [severity]=\"getSeverity(option.label)\" />\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th pSortableColumn=\"activity\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Activity\n <p-sortIcon field=\"activity\" />\n <p-columnFilter field=\"activity\" matchMode=\"between\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\" class=\"ml-auto\">\n <ng-template #filter let-filter=\"filterCallback\">\n <p-slider [(ngModel)]=\"activityValues\" [range]=\"true\" (onSlideEnd)=\"filter($event.values)\" class=\"m-4\"></p-slider>\n <div class=\"flex items-center justify-between px-2\">\n <span>{{ activityValues[0] }}</span>\n <span>{{ activityValues[1] }}</span>\n </div>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"width: 5rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr class=\"p-selectable-row\">\n <td>\n <p-tableCheckbox [value]=\"customer\" />\n </td>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.date | date: 'MM/dd/yyyy' }}\n </td>\n <td>\n {{ customer.balance | currency: 'USD' : 'symbol' }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <p-progressBar [value]=\"customer.activity\" [showValue]=\"false\" />\n </td>\n <td style=\"text-align: center\">\n <p-button rounded icon=\"pi pi-cog\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"8\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, ProgressBarModule, SliderModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableCustomersDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n selectedCustomers!: Customer[];\n representatives!: Representative[];\n statuses!: any[];\n loading: boolean = true;\n activityValues: number[] = [0, 100];\n searchValue: string | undefined;\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n this.customers = customers;\n this.loading = false;\n this.customers.forEach((customer) => (customer.date = new Date(<Date>customer.date)));\n });\n this.representatives = [\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ];\n this.statuses = [\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ];\n }\n\n clear(dt: Table) {\n this.searchValue = '';\n dt.reset();\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33793
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt\n [value]=\"customers\"\n [(selection)]=\"selectedCustomers\"\n dataKey=\"id\"\n [rowHover]=\"true\"\n [rows]=\"10\"\n [showCurrentPageReport]=\"true\"\n [rowsPerPageOptions]=\"[10, 25, 50]\"\n [loading]=\"loading\"\n [paginator]=\"true\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [filterDelay]=\"0\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n >\n <ng-template #caption>\n <div class=\"flex justify-between\">\n <p-button [outlined]=\"true\" icon=\"pi pi-filter-slash\" label=\"Clear\" (click)=\"clear(dt)\" />\n <p-iconField iconPosition=\"left\">\n <p-inputIcon>\n <i class=\"pi pi-search\"></i>\n </p-inputIcon>\n <input pInputText type=\"text\" [(ngModel)]=\"searchValue\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\" placeholder=\"Keyboard Search\" />\n </p-iconField>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 4rem\">\n <p-tableHeaderCheckbox />\n </th>\n <th pSortableColumn=\"name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n <p-columnFilter type=\"text\" field=\"name\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"country.name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Country\n <p-sortIcon field=\"country.name\" />\n <p-columnFilter type=\"text\" field=\"country.name\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"representative.name\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Agent\n <p-sortIcon field=\"representative.name\" />\n <p-columnFilter field=\"representative\" matchMode=\"in\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\" class=\"ml-auto\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [filter]=\"false\" [(ngModel)]=\"value\" [options]=\"representatives\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" class=\"w-full\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th pSortableColumn=\"date\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Date\n <p-sortIcon field=\"date\" />\n <p-columnFilter type=\"date\" field=\"date\" display=\"menu\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"balance\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Balance\n <p-sortIcon field=\"balance\" />\n <p-columnFilter type=\"numeric\" field=\"balance\" display=\"menu\" currency=\"USD\" class=\"ml-auto\" />\n </div>\n </th>\n <th pSortableColumn=\"status\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n <p-columnFilter field=\"status\" matchMode=\"equals\" display=\"menu\" class=\"ml-auto\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses\" (onChange)=\"filter($event.value)\" placeholder=\"Any\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.label\" [severity]=\"getSeverity(option.label)\" />\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th pSortableColumn=\"activity\" style=\"min-width: 14rem\">\n <div class=\"flex justify-between items-center gap-2\">\n Activity\n <p-sortIcon field=\"activity\" />\n <p-columnFilter field=\"activity\" matchMode=\"between\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\" class=\"ml-auto\">\n <ng-template #filter let-filter=\"filterCallback\">\n <p-slider [(ngModel)]=\"activityValues\" [range]=\"true\" (onSlideEnd)=\"filter($event.values)\" class=\"m-4\"></p-slider>\n <div class=\"flex items-center justify-between px-2\">\n <span>{{ activityValues[0] }}</span>\n <span>{{ activityValues[1] }}</span>\n </div>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"width: 5rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr class=\"p-selectable-row\">\n <td>\n <p-tableCheckbox [value]=\"customer\" />\n </td>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.date | date: 'MM/dd/yyyy' }}\n </td>\n <td>\n {{ customer.balance | currency: 'USD' : 'symbol' }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <p-progressBar [value]=\"customer.activity\" [showValue]=\"false\" />\n </td>\n <td style=\"text-align: center\">\n <p-button rounded icon=\"pi pi-cog\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"8\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, ProgressBarModule, SliderModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableCustomersDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n selectedCustomers!: Customer[];\n representatives!: Representative[];\n statuses!: any[];\n loading: boolean = true;\n activityValues: number[] = [0, 100];\n searchValue: string | undefined;\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n this.customers = customers;\n this.loading = false;\n this.customers.forEach((customer) => (customer.date = new Date(<Date>customer.date)));\n });\n this.representatives = [\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ];\n this.statuses = [\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ];\n }\n\n clear(dt: Table) {\n this.searchValue = '';\n dt.reset();\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33794
33794
  }
33795
33795
  },
33796
33796
  {
@@ -33806,7 +33806,7 @@
33806
33806
  "label": "expandablerowgroup-doc",
33807
33807
  "description": "When expandableRowGroups is present in subheader based row grouping, groups can be expanded and collapsed. State of the expansions are controlled using the expandedRows and onRowToggle properties.",
33808
33808
  "examples": {
33809
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" sortField=\"representative.name\" sortMode=\"single\" dataKey=\"representative.name\" rowGroupMode=\"subheader\" groupRowsBy=\"representative.name\" [tableStyle]=\"{ 'min-width': '70rem' }\">\n <ng-template #header>\n <tr>\n <th style=\"width:20%\">Name</th>\n <th style=\"width:20%\">Country</th>\n <th style=\"width:20%\">Company</th>\n <th style=\"width:20%\">Status</th>\n <th style=\"width:20%\">Date</th>\n </tr>\n </ng-template>\n <ng-template #groupheader let-customer let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"5\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"customer\" text rounded plain class=\"mr-2\" [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle; display: inline-block\" />\n <span class=\"font-bold ml-2\">{{ customer.representative.name }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template #groupfooter let-customer>\n <tr class=\"p-rowgroup-footer\">\n <td colspan=\"4\" style=\"text-align: right\">Total Customers</td>\n <td>{{ calculateCustomerTotal(customer.representative.name) }}</td>\n </tr>\n </ng-template>\n <ng-template #expandedrow let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n {{ customer.date }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule, ButtonModule, RippleModule],\n providers: [CustomerService]\n})\nexport class TableExpandablerowgroupDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33809
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" sortField=\"representative.name\" sortMode=\"single\" dataKey=\"representative.name\" rowGroupMode=\"subheader\" groupRowsBy=\"representative.name\" [tableStyle]=\"{ 'min-width': '70rem' }\">\n <ng-template #header>\n <tr>\n <th style=\"width:20%\">Name</th>\n <th style=\"width:20%\">Country</th>\n <th style=\"width:20%\">Company</th>\n <th style=\"width:20%\">Status</th>\n <th style=\"width:20%\">Date</th>\n </tr>\n </ng-template>\n <ng-template #groupheader let-customer let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"5\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"customer\" text rounded plain class=\"mr-2\" [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle; display: inline-block\" />\n <span class=\"font-bold ml-2\">{{ customer.representative.name }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template #groupfooter let-customer>\n <tr class=\"p-rowgroup-footer\">\n <td colspan=\"4\" style=\"text-align: right\">Total Customers</td>\n <td>{{ calculateCustomerTotal(customer.representative.name) }}</td>\n </tr>\n </ng-template>\n <ng-template #expandedrow let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n {{ customer.date }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule, ButtonModule, RippleModule],\n providers: [CustomerService]\n})\nexport class TableExpandablerowgroupDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33810
33810
  }
33811
33811
  },
33812
33812
  {
@@ -33822,7 +33822,7 @@
33822
33822
  "label": "Advanced",
33823
33823
  "description": "Filters are displayed in an overlay.",
33824
33824
  "examples": {
33825
- "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table #dt1 [value]=\"customers()\" dataKey=\"id\" [rows]=\"10\" [rowsPerPageOptions]=\"[10, 25, 50]\" [loading]=\"loading()\" [paginator]=\"true\" [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\" showGridlines>\n <ng-template #caption>\n <div class=\"flex\">\n <p-button label=\"Clear\" [outlined]=\"true\" icon=\"pi pi-filter-slash\" (click)=\"clear(dt1)\" />\n <p-iconfield iconPosition=\"left\" class=\"ml-auto\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" (input)=\"dt1.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search keyword\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Name\n <p-columnFilter type=\"text\" field=\"name\" display=\"menu\" />\n </div>\n </th>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Country\n <p-columnFilter type=\"text\" field=\"country.name\" display=\"menu\" />\n </div>\n </th>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Agent\n <p-columnFilter field=\"representative\" matchMode=\"in\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [(ngModel)]=\"value\" [options]=\"representatives()\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" style=\"min-width: 14rem\" [panelStyle]=\"{ minWidth: '16rem' }\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Date\n <p-columnFilter type=\"date\" field=\"date\" display=\"menu\"></p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Balance\n <p-columnFilter type=\"numeric\" field=\"balance\" display=\"menu\" currency=\"USD\" />\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Status\n <p-columnFilter field=\"status\" matchMode=\"equals\" display=\"menu\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses()\" (onChange)=\"filter($event.value)\" placeholder=\"Select One\" class=\"w-full\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.value\" [severity]=\"getSeverity(option.value)\"></p-tag>\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Activity\n <p-columnFilter field=\"activity\" matchMode=\"between\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-slider [(ngModel)]=\"value\" [range]=\"true\" class=\"m-4\" (onSlideEnd)=\"filter($event.values)\" />\n <div class=\"flex items-center px-2\">\n <span *ngIf=\"!value\">0</span>\n <span *ngIf=\"value\">{{ value[0] }} - {{ value[1] }}</span>\n </div>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"width: 3rem\">\n <div class=\"flex items-center justify-between\">\n Verified\n <p-columnFilter type=\"boolean\" field=\"verified\" display=\"menu\" />\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.date | date: 'MM/dd/yyyy' }}\n </td>\n <td>\n {{ customer.balance | currency: 'USD' : 'symbol' }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <p-progressbar [value]=\"customer.activity\" [showValue]=\"false\" />\n </td>\n <td class=\"text-center\">\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'text-green-500 pi-check-circle': customer.verified,\n 'text-red-500 pi-times-circle': !customer.verified\n }\"\n ></i>\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"7\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, ProgressBarModule, SliderModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableFilterAdvancedDemo implements OnInit {\n private customerService = inject(CustomerService);\n customerService = inject(CustomerService);\n customers = signal<Customer[]>([]);\n representatives = signal<Representative[]>([]);\n statuses = signal<any[]>([]);\n loading = signal(true);\n searchValue = signal('');\n activityValues = signal<number[]>([0, 100]);\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n customers.forEach((customer: Customer) => (customer.date = new Date(customer.date as string)));\n this.customers.set(customers);\n this.loading.set(false);\n });\n this.representatives.set([\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ]);\n this.statuses.set([\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ]);\n }\n\n clear(table: Table) {\n table.clear();\n this.searchValue.set('');\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33825
+ "typescript": "import { Component, OnInit, inject, signal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { ProgressBarModule } from '@exhaustive-ui/core/progressbar';\nimport { SliderModule } from '@exhaustive-ui/core/slider';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table #dt1 [value]=\"customers()\" dataKey=\"id\" [rows]=\"10\" [rowsPerPageOptions]=\"[10, 25, 50]\" [loading]=\"loading()\" [paginator]=\"true\" [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\" showGridlines>\n <ng-template #caption>\n <div class=\"flex\">\n <p-button label=\"Clear\" [outlined]=\"true\" icon=\"pi pi-filter-slash\" (click)=\"clear(dt1)\" />\n <p-iconfield iconPosition=\"left\" class=\"ml-auto\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" (input)=\"dt1.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search keyword\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Name\n <p-columnFilter type=\"text\" field=\"name\" display=\"menu\" />\n </div>\n </th>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Country\n <p-columnFilter type=\"text\" field=\"country.name\" display=\"menu\" />\n </div>\n </th>\n <th style=\"min-width:15rem\">\n <div class=\"flex items-center justify-between\">\n Agent\n <p-columnFilter field=\"representative\" matchMode=\"in\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [(ngModel)]=\"value\" [options]=\"representatives()\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" style=\"min-width: 14rem\" [panelStyle]=\"{ minWidth: '16rem' }\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Date\n <p-columnFilter type=\"date\" field=\"date\" display=\"menu\"></p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Balance\n <p-columnFilter type=\"numeric\" field=\"balance\" display=\"menu\" currency=\"USD\" />\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Status\n <p-columnFilter field=\"status\" matchMode=\"equals\" display=\"menu\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses()\" (onChange)=\"filter($event.value)\" placeholder=\"Select One\" class=\"w-full\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.value\" [severity]=\"getSeverity(option.value)\"></p-tag>\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"min-width:10rem\">\n <div class=\"flex items-center justify-between\">\n Activity\n <p-columnFilter field=\"activity\" matchMode=\"between\" display=\"menu\" [showMatchModes]=\"false\" [showOperator]=\"false\" [showAddButton]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-slider [(ngModel)]=\"value\" [range]=\"true\" class=\"m-4\" (onSlideEnd)=\"filter($event.values)\" />\n <div class=\"flex items-center px-2\">\n <span *ngIf=\"!value\">0</span>\n <span *ngIf=\"value\">{{ value[0] }} - {{ value[1] }}</span>\n </div>\n </ng-template>\n </p-columnFilter>\n </div>\n </th>\n <th style=\"width: 3rem\">\n <div class=\"flex items-center justify-between\">\n Verified\n <p-columnFilter type=\"boolean\" field=\"verified\" display=\"menu\" />\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.date | date: 'MM/dd/yyyy' }}\n </td>\n <td>\n {{ customer.balance | currency: 'USD' : 'symbol' }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <p-progressbar [value]=\"customer.activity\" [showValue]=\"false\" />\n </td>\n <td class=\"text-center\">\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'text-green-500 pi-check-circle': customer.verified,\n 'text-red-500 pi-times-circle': !customer.verified\n }\"\n ></i>\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"7\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, ProgressBarModule, SliderModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableFilterAdvancedDemo implements OnInit {\n private customerService = inject(CustomerService);\n customerService = inject(CustomerService);\n customers = signal<Customer[]>([]);\n representatives = signal<Representative[]>([]);\n statuses = signal<any[]>([]);\n loading = signal(true);\n searchValue = signal('');\n activityValues = signal<number[]>([0, 100]);\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n customers.forEach((customer: Customer) => (customer.date = new Date(customer.date as string)));\n this.customers.set(customers);\n this.loading.set(false);\n });\n this.representatives.set([\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ]);\n this.statuses.set([\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ]);\n }\n\n clear(table: Table) {\n table.clear();\n this.searchValue.set('');\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33826
33826
  }
33827
33827
  },
33828
33828
  {
@@ -33830,7 +33830,7 @@
33830
33830
  "label": "filterbasic-doc",
33831
33831
  "description": "Data filtering is enabled by defining the filters property referring to a DataTableFilterMeta instance. Each column to filter also requires filter to be enabled. Built-in filter element is a input field and using filterElement , it is possible to customize the filtering with your own UI. The optional global filtering searches the data against a single value that is bound to the global key of the filters object. The fields to search against is defined with the globalFilterFields .",
33832
33832
  "examples": {
33833
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt2\n [value]=\"customers\"\n dataKey=\"id\"\n [rows]=\"10\"\n [rowsPerPageOptions]=\"[10, 25, 50]\"\n [loading]=\"loading\"\n [paginator]=\"true\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n [tableStyle]=\"{ 'min-width': '75rem' }\"\n >\n <ng-template #caption>\n <div class=\"flex\">\n <p-iconfield iconPosition=\"left\" class=\"ml-auto\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" (input)=\"dt2.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search keyword\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width:22%\">Name</th>\n <th style=\"width:22%\">Country</th>\n <th style=\"width:22%\">Agent</th>\n <th style=\"width:22%\">Status</th>\n <th style=\"width:12%\">Verified</th>\n </tr>\n <tr>\n <th>\n <p-columnFilter type=\"text\" field=\"name\" placeholder=\"Type to search\" ariaLabel=\"Filter Name\" filterOn=\"input\"></p-columnFilter>\n </th>\n <th>\n <p-columnFilter type=\"text\" field=\"country.name\" placeholder=\"Enter key to search\" ariaLabel=\"Filter Country\"></p-columnFilter>\n </th>\n <th>\n <p-columnFilter field=\"representative\" matchMode=\"in\" [showMenu]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [(ngModel)]=\"value\" [options]=\"representatives\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" style=\"min-width: 14rem\" [panelStyle]=\"{ minWidth: '16rem' }\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </th>\n <th>\n <p-columnFilter field=\"status\" matchMode=\"equals\" [showMenu]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses\" (onChange)=\"filter($event.value)\" placeholder=\"Select One\" [showClear]=\"true\" style=\"min-width: 12rem\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.value\" [severity]=\"getSeverity(option.value)\" />\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </th>\n <th>\n <p-columnFilter type=\"boolean\" field=\"verified\"></p-columnFilter>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'text-green-500 pi-check-circle': customer.verified,\n 'text-red-500 pi-times-circle': !customer.verified\n }\"\n ></i>\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"5\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableFilterbasicDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n representatives!: Representative[];\n statuses!: any[];\n loading: boolean = true;\n activityValues: number[] = [0, 100];\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n this.customers = customers;\n this.loading = false;\n this.customers.forEach((customer) => (customer.date = new Date(<Date>customer.date)));\n });\n this.representatives = [\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ];\n this.statuses = [\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ];\n }\n\n clear(table: Table) {\n table.clear();\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33833
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { MultiSelectModule } from '@exhaustive-ui/core/multiselect';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt2\n [value]=\"customers\"\n dataKey=\"id\"\n [rows]=\"10\"\n [rowsPerPageOptions]=\"[10, 25, 50]\"\n [loading]=\"loading\"\n [paginator]=\"true\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n [tableStyle]=\"{ 'min-width': '75rem' }\"\n >\n <ng-template #caption>\n <div class=\"flex\">\n <p-iconfield iconPosition=\"left\" class=\"ml-auto\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" (input)=\"dt2.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search keyword\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width:22%\">Name</th>\n <th style=\"width:22%\">Country</th>\n <th style=\"width:22%\">Agent</th>\n <th style=\"width:22%\">Status</th>\n <th style=\"width:12%\">Verified</th>\n </tr>\n <tr>\n <th>\n <p-columnFilter type=\"text\" field=\"name\" placeholder=\"Type to search\" ariaLabel=\"Filter Name\" filterOn=\"input\"></p-columnFilter>\n </th>\n <th>\n <p-columnFilter type=\"text\" field=\"country.name\" placeholder=\"Enter key to search\" ariaLabel=\"Filter Country\"></p-columnFilter>\n </th>\n <th>\n <p-columnFilter field=\"representative\" matchMode=\"in\" [showMenu]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-multiselect [(ngModel)]=\"value\" [options]=\"representatives\" placeholder=\"Any\" (onChange)=\"filter($event.value)\" optionLabel=\"name\" style=\"min-width: 14rem\" [panelStyle]=\"{ minWidth: '16rem' }\">\n <ng-template let-option #item>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"option.label\" src=\"https://exhaustive-ui.com/demo/avatar/{{ option.image }}\" style=\"width: 32px\" />\n <span>{{ option.name }}</span>\n </div>\n </ng-template>\n </p-multiselect>\n </ng-template>\n </p-columnFilter>\n </th>\n <th>\n <p-columnFilter field=\"status\" matchMode=\"equals\" [showMenu]=\"false\">\n <ng-template #filter let-value let-filter=\"filterCallback\">\n <p-select [(ngModel)]=\"value\" [options]=\"statuses\" (onChange)=\"filter($event.value)\" placeholder=\"Select One\" [showClear]=\"true\" style=\"min-width: 12rem\">\n <ng-template let-option #item>\n <p-tag [value]=\"option.value\" [severity]=\"getSeverity(option.value)\" />\n </ng-template>\n </p-select>\n </ng-template>\n </p-columnFilter>\n </th>\n <th>\n <p-columnFilter type=\"boolean\" field=\"verified\"></p-columnFilter>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n <i\n class=\"pi\"\n [ngClass]=\"{\n 'text-green-500 pi-check-circle': customer.verified,\n 'text-red-500 pi-times-circle': !customer.verified\n }\"\n ></i>\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"5\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [SelectModule, IconFieldModule, InputIconModule, MultiSelectModule, TableModule, TagModule, InputTextModule, FormsModule],\n providers: [CustomerService]\n})\nexport class TableFilterbasicDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n representatives!: Representative[];\n statuses!: any[];\n loading: boolean = true;\n activityValues: number[] = [0, 100];\n\n ngOnInit() {\n this.customerService.getCustomersLarge().then((customers) => {\n this.customers = customers;\n this.loading = false;\n this.customers.forEach((customer) => (customer.date = new Date(<Date>customer.date)));\n });\n this.representatives = [\n { name: 'Amy Elsner', image: 'amyelsner.png' },\n { name: 'Anna Fali', image: 'annafali.png' },\n { name: 'Asiya Javayant', image: 'asiyajavayant.png' },\n { name: 'Bernardo Dominic', image: 'bernardodominic.png' },\n { name: 'Elwin Sharvill', image: 'elwinsharvill.png' },\n { name: 'Ioni Bowcher', image: 'ionibowcher.png' },\n { name: 'Ivan Magalhaes', image: 'ivanmagalhaes.png' },\n { name: 'Onyama Limba', image: 'onyamalimba.png' },\n { name: 'Stephen Shaw', image: 'stephenshaw.png' },\n { name: 'Xuxue Feng', image: 'xuxuefeng.png' }\n ];\n this.statuses = [\n { label: 'Unqualified', value: 'unqualified' },\n { label: 'Qualified', value: 'qualified' },\n { label: 'New', value: 'new' },\n { label: 'Negotiation', value: 'negotiation' },\n { label: 'Renewal', value: 'renewal' },\n { label: 'Proposal', value: 'proposal' }\n ];\n }\n\n clear(table: Table) {\n table.clear();\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33834
33834
  }
33835
33835
  },
33836
33836
  {
@@ -33934,7 +33934,7 @@
33934
33934
  "label": "Products",
33935
33935
  "description": "CRUD implementation example with a Dialog.",
33936
33936
  "examples": {
33937
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';\nimport { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { InputNumberModule } from '@exhaustive-ui/core/inputnumber';\nimport { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { ToolbarModule } from '@exhaustive-ui/core/toolbar';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\ninterface Column {\n field: string;\n header: string;\n customExportHeader?: string;\n}\n\ninterface ExportColumn {\n title: string;\n dataKey: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-toolbar class=\"mb-6\">\n <ng-template #start>\n <p-button label=\"New\" icon=\"pi pi-plus\" class=\"mr-2\" (onClick)=\"openNew()\" />\n <p-button severity=\"danger\" label=\"Delete\" icon=\"pi pi-trash\" outlined (onClick)=\"deleteSelectedProducts()\" [disabled]=\"!selectedProducts || !selectedProducts.length\" />\n </ng-template>\n <ng-template #end>\n <p-fileUpload mode=\"basic\" accept=\"image/*\" [maxFileSize]=\"1000000\" label=\"Import\" chooseLabel=\"Import\" auto customUpload class=\"mr-2 inline-block\" [chooseButtonProps]=\"{ severity: 'secondary' }\" />\n <p-button label=\"Export\" icon=\"pi pi-upload\" severity=\"secondary\" (onClick)=\"exportCSV($event)\" />\n </ng-template>\n </p-toolbar>\n <p-table\n #dt\n [value]=\"products\"\n [rows]=\"10\"\n [columns]=\"cols\"\n [paginator]=\"true\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n [tableStyle]=\"{ 'min-width': '75rem' }\"\n [(selection)]=\"selectedProducts\"\n [rowHover]=\"true\"\n dataKey=\"id\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [showCurrentPageReport]=\"true\"\n >\n <ng-template #caption>\n <div class=\"flex items-center justify-between\">\n <h5 class=\"m-0\">Manage Products</h5>\n <p-iconfield>\n <p-inputicon class=\"pi pi-search\" />\n <input pInputText type=\"text\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search...\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 3rem\">\n <p-tableHeaderCheckbox />\n </th>\n <th style=\"min-width: 16rem\">Code</th>\n <th pSortableColumn=\"name\" style=\"min-width:16rem\">\n <div class=\"flex items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n </div>\n </th>\n <th>Image</th>\n <th pSortableColumn=\"price\" style=\"min-width: 8rem\">\n <div class=\"flex items-center gap-2\">\n Price\n <p-sortIcon field=\"price\" />\n </div>\n </th>\n <th pSortableColumn=\"category\" style=\"min-width:10rem\">\n <div class=\"flex items-center gap-2\">\n Category\n <p-sortIcon field=\"category\" />\n </div>\n </th>\n <th pSortableColumn=\"rating\" style=\"min-width: 12rem\">\n <div class=\"flex items-center gap-2\">\n Reviews\n <p-sortIcon field=\"rating\" />\n </div>\n </th>\n <th pSortableColumn=\"inventoryStatus\" style=\"min-width: 12rem\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"inventoryStatus\" />\n </div>\n </th>\n <th style=\"min-width: 12rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td style=\"width: 3rem\">\n <p-tableCheckbox [value]=\"product\" />\n </td>\n <td style=\"min-width: 12rem\">{{ product.code }}</td>\n <td style=\"min-width: 16rem\">{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.name\" style=\"width: 64px\" class=\"rounded\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td>\n <p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" />\n </td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n <td>\n <p-button icon=\"pi pi-pencil\" class=\"mr-2\" [rounded]=\"true\" [outlined]=\"true\" (click)=\"editProduct(product)\" />\n <p-button icon=\"pi pi-trash\" severity=\"danger\" [rounded]=\"true\" [outlined]=\"true\" (click)=\"deleteProduct(product)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n <p-dialog [(visible)]=\"productDialog\" [style]=\"{ width: '450px' }\" header=\"Product Details\" [modal]=\"true\">\n <ng-template #content>\n <div class=\"flex flex-col gap-6\">\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.image\" class=\"block m-auto pb-4\" *ngIf=\"product.image\" />\n <div>\n <label for=\"name\" class=\"block font-bold mb-3\">Name</label>\n <input type=\"text\" pInputText id=\"name\" [(ngModel)]=\"product.name\" required autofocus fluid />\n <small class=\"text-red-500\" *ngIf=\"submitted && !product.name\">Name is required.</small>\n </div>\n <div>\n <label for=\"description\" class=\"block font-bold mb-3\">Description</label>\n <textarea id=\"description\" pTextarea [(ngModel)]=\"product.description\" required rows=\"3\" cols=\"20\" fluid></textarea>\n </div>\n <div>\n <label for=\"inventoryStatus\" class=\"block font-bold mb-3\">Inventory Status</label>\n <p-select [(ngModel)]=\"product.inventoryStatus\" inputId=\"inventoryStatus\" [options]=\"statuses\" optionLabel=\"label\" optionValue=\"label\" placeholder=\"Select a Status\" fluid />\n </div>\n <div>\n <span class=\"block font-bold mb-4\">Category</span>\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category1\" name=\"category\" value=\"Accessories\" [(ngModel)]=\"product.category\" />\n <label for=\"category1\">Accessories</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category2\" name=\"category\" value=\"Clothing\" [(ngModel)]=\"product.category\" />\n <label for=\"category2\">Clothing</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category3\" name=\"category\" value=\"Electronics\" [(ngModel)]=\"product.category\" />\n <label for=\"category3\">Electronics</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category4\" name=\"category\" value=\"Fitness\" [(ngModel)]=\"product.category\" />\n <label for=\"category4\">Fitness</label>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"col-span-6\">\n <label for=\"price\" class=\"block font-bold mb-3\">Price</label>\n <p-inputnumber id=\"price\" [(ngModel)]=\"product.price\" mode=\"currency\" currency=\"USD\" locale=\"en-US\" fluid />\n </div>\n <div class=\"col-span-6\">\n <label for=\"quantity\" class=\"block font-bold mb-3\">Quantity</label>\n <p-inputnumber id=\"quantity\" [(ngModel)]=\"product.quantity\" fluid />\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #footer>\n <p-button label=\"Cancel\" icon=\"pi pi-times\" text (click)=\"hideDialog()\" />\n <p-button label=\"Save\" icon=\"pi pi-check\" (click)=\"saveProduct()\" />\n </ng-template>\n </p-dialog>\n <p-confirmdialog [style]=\"{ width: '450px' }\" />\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, ConfirmDialogModule, DialogModule, SelectModule, FileUploadModule, IconFieldModule, InputIconModule, InputNumberModule, RadioButtonModule, RatingModule, TableModule, TagModule, ToastModule, ToolbarModule, InputTextModule, FormsModule],\n providers: [ProductService, MessageService, ConfirmationService]\n})\nexport class TableProductsDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n private confirmationService = inject(ConfirmationService);\n productDialog: boolean = false;\n products!: Product[];\n product!: Product;\n selectedProducts!: Product[] | null;\n submitted: boolean = false;\n statuses!: any[];\n cols!: Column[];\n exportColumns!: ExportColumn[];\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products = data;\n });\n this.statuses = [\n { label: 'INSTOCK', value: 'instock' },\n { label: 'LOWSTOCK', value: 'lowstock' },\n { label: 'OUTOFSTOCK', value: 'outofstock' }\n ];\n this.cols = [\n { field: 'code', header: 'Code', customExportHeader: 'Product Code' },\n { field: 'name', header: 'Name' },\n { field: 'image', header: 'Image' },\n { field: 'price', header: 'Price' },\n { field: 'category', header: 'Category' }\n ];\n this.exportColumns = this.cols.map((col) => ({ title: col.header, dataKey: col.field }));\n }\n\n openNew() {\n this.product = {};\n this.submitted = false;\n this.productDialog = true;\n }\n\n editProduct(product: Product) {\n this.product = { ...product };\n this.productDialog = true;\n }\n\n deleteSelectedProducts() {\n this.confirmationService.confirm({\n message: 'Are you sure you want to delete the selected products?',\n header: 'Confirm',\n icon: 'pi pi-exclamation-triangle',\n rejectButtonProps: {\n label: 'No',\n severity: 'secondary',\n variant: 'text'\n },\n acceptButtonProps: {\n severity: 'danger',\n label: 'Yes'\n },\n accept: () => {\n this.products = this.products.filter((val) => !this.selectedProducts?.includes(val));\n this.selectedProducts = null;\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Products Deleted',\n life: 3000\n });\n }\n });\n }\n\n hideDialog() {\n this.productDialog = false;\n this.submitted = false;\n }\n\n deleteProduct(product: Product) {\n this.confirmationService.confirm({\n message: 'Are you sure you want to delete ' + product.name + '?',\n header: 'Confirm',\n icon: 'pi pi-exclamation-triangle',\n rejectButtonProps: {\n label: 'No',\n severity: 'secondary',\n variant: 'text'\n },\n acceptButtonProps: {\n severity: 'danger',\n label: 'Yes'\n },\n accept: () => {\n this.products = this.products.filter((val) => val.id !== product.id);\n this.product = {};\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Deleted',\n life: 3000\n });\n }\n });\n }\n\n findIndexById(id: string): number {\n let index = -1;\n for (let i = 0; i < this.products.length; i++) {\n if (this.products[i].id === id) {\n index = i;\n break;\n }\n }\n \n return index;\n }\n\n createId(): string {\n let id = '';\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n for (var i = 0; i < 5; i++) {\n id += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n return id;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n\n saveProduct() {\n this.submitted = true;\n \n if (this.product.name?.trim()) {\n if (this.product.id) {\n this.products[this.findIndexById(this.product.id)] = this.product;\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Updated',\n life: 3000\n });\n } else {\n this.product.id = this.createId();\n this.product.code = this.createId();\n this.product.image = 'product-placeholder.svg';\n this.products.push(this.product);\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Created',\n life: 3000\n });\n }\n \n this.products = [...this.products];\n this.productDialog = false;\n this.product = {};\n }\n }\n}"
33937
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';\nimport { Dialog, DialogModule } from '@exhaustive-ui/core/dialog';\nimport { SelectModule } from '@exhaustive-ui/core/select';\nimport { FileUploadModule } from '@exhaustive-ui/core/fileupload';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { InputNumberModule } from '@exhaustive-ui/core/inputnumber';\nimport { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { ToolbarModule } from '@exhaustive-ui/core/toolbar';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService, ConfirmationService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\n\ninterface Column {\n field: string;\n header: string;\n customExportHeader?: string;\n}\n\ninterface ExportColumn {\n title: string;\n dataKey: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-toolbar class=\"mb-6\">\n <ng-template #start>\n <p-button label=\"New\" icon=\"pi pi-plus\" class=\"mr-2\" (onClick)=\"openNew()\" />\n <p-button severity=\"danger\" label=\"Delete\" icon=\"pi pi-trash\" outlined (onClick)=\"deleteSelectedProducts()\" [disabled]=\"!selectedProducts || !selectedProducts.length\" />\n </ng-template>\n <ng-template #end>\n <p-fileUpload mode=\"basic\" accept=\"image/*\" [maxFileSize]=\"1000000\" label=\"Import\" chooseLabel=\"Import\" auto customUpload class=\"mr-2 inline-block\" [chooseButtonProps]=\"{ severity: 'secondary' }\" />\n <p-button label=\"Export\" icon=\"pi pi-upload\" severity=\"secondary\" (onClick)=\"exportCSV($event)\" />\n </ng-template>\n </p-toolbar>\n <p-table\n #dt\n [value]=\"products\"\n [rows]=\"10\"\n [columns]=\"cols\"\n [paginator]=\"true\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n [tableStyle]=\"{ 'min-width': '75rem' }\"\n [(selection)]=\"selectedProducts\"\n [rowHover]=\"true\"\n dataKey=\"id\"\n currentPageReportTemplate=\"Showing {first} to {last} of {totalRecords} entries\"\n [showCurrentPageReport]=\"true\"\n >\n <ng-template #caption>\n <div class=\"flex items-center justify-between\">\n <h5 class=\"m-0\">Manage Products</h5>\n <p-iconfield>\n <p-inputicon class=\"pi pi-search\" />\n <input pInputText type=\"text\" (input)=\"dt.filterGlobal($event.target.value, 'contains')\" placeholder=\"Search...\" />\n </p-iconfield>\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 3rem\">\n <p-tableHeaderCheckbox />\n </th>\n <th style=\"min-width: 16rem\">Code</th>\n <th pSortableColumn=\"name\" style=\"min-width:16rem\">\n <div class=\"flex items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n </div>\n </th>\n <th>Image</th>\n <th pSortableColumn=\"price\" style=\"min-width: 8rem\">\n <div class=\"flex items-center gap-2\">\n Price\n <p-sortIcon field=\"price\" />\n </div>\n </th>\n <th pSortableColumn=\"category\" style=\"min-width:10rem\">\n <div class=\"flex items-center gap-2\">\n Category\n <p-sortIcon field=\"category\" />\n </div>\n </th>\n <th pSortableColumn=\"rating\" style=\"min-width: 12rem\">\n <div class=\"flex items-center gap-2\">\n Reviews\n <p-sortIcon field=\"rating\" />\n </div>\n </th>\n <th pSortableColumn=\"inventoryStatus\" style=\"min-width: 12rem\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"inventoryStatus\" />\n </div>\n </th>\n <th style=\"min-width: 12rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td style=\"width: 3rem\">\n <p-tableCheckbox [value]=\"product\" />\n </td>\n <td style=\"min-width: 12rem\">{{ product.code }}</td>\n <td style=\"min-width: 16rem\">{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.name\" style=\"width: 64px\" class=\"rounded\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td>\n <p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" />\n </td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n <td>\n <p-button icon=\"pi pi-pencil\" class=\"mr-2\" [rounded]=\"true\" [outlined]=\"true\" (click)=\"editProduct(product)\" />\n <p-button icon=\"pi pi-trash\" severity=\"danger\" [rounded]=\"true\" [outlined]=\"true\" (click)=\"deleteProduct(product)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n <p-dialog [(visible)]=\"productDialog\" [style]=\"{ width: '450px' }\" header=\"Product Details\" [modal]=\"true\">\n <ng-template #content>\n <div class=\"flex flex-col gap-6\">\n <img [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.image\" class=\"block m-auto pb-4\" *ngIf=\"product.image\" />\n <div>\n <label for=\"name\" class=\"block font-bold mb-3\">Name</label>\n <input type=\"text\" pInputText id=\"name\" [(ngModel)]=\"product.name\" required autofocus fluid />\n <small class=\"text-red-500\" *ngIf=\"submitted && !product.name\">Name is required.</small>\n </div>\n <div>\n <label for=\"description\" class=\"block font-bold mb-3\">Description</label>\n <textarea id=\"description\" pTextarea [(ngModel)]=\"product.description\" required rows=\"3\" cols=\"20\" fluid></textarea>\n </div>\n <div>\n <label for=\"inventoryStatus\" class=\"block font-bold mb-3\">Inventory Status</label>\n <p-select [(ngModel)]=\"product.inventoryStatus\" inputId=\"inventoryStatus\" [options]=\"statuses\" optionLabel=\"label\" optionValue=\"label\" placeholder=\"Select a Status\" fluid />\n </div>\n <div>\n <span class=\"block font-bold mb-4\">Category</span>\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category1\" name=\"category\" value=\"Accessories\" [(ngModel)]=\"product.category\" />\n <label for=\"category1\">Accessories</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category2\" name=\"category\" value=\"Clothing\" [(ngModel)]=\"product.category\" />\n <label for=\"category2\">Clothing</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category3\" name=\"category\" value=\"Electronics\" [(ngModel)]=\"product.category\" />\n <label for=\"category3\">Electronics</label>\n </div>\n <div class=\"flex items-center gap-2 col-span-6\">\n <p-radiobutton id=\"category4\" name=\"category\" value=\"Fitness\" [(ngModel)]=\"product.category\" />\n <label for=\"category4\">Fitness</label>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"col-span-6\">\n <label for=\"price\" class=\"block font-bold mb-3\">Price</label>\n <p-inputnumber id=\"price\" [(ngModel)]=\"product.price\" mode=\"currency\" currency=\"USD\" locale=\"en-US\" fluid />\n </div>\n <div class=\"col-span-6\">\n <label for=\"quantity\" class=\"block font-bold mb-3\">Quantity</label>\n <p-inputnumber id=\"quantity\" [(ngModel)]=\"product.quantity\" fluid />\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #footer>\n <p-button label=\"Cancel\" icon=\"pi pi-times\" text (click)=\"hideDialog()\" />\n <p-button label=\"Save\" icon=\"pi pi-check\" (click)=\"saveProduct()\" />\n </ng-template>\n </p-dialog>\n <p-confirmdialog [style]=\"{ width: '450px' }\" />\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, ConfirmDialogModule, DialogModule, SelectModule, FileUploadModule, IconFieldModule, InputIconModule, InputNumberModule, RadioButtonModule, RatingModule, TableModule, TagModule, ToastModule, ToolbarModule, InputTextModule, FormsModule],\n providers: [ProductService, MessageService, ConfirmationService]\n})\nexport class TableProductsDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n private confirmationService = inject(ConfirmationService);\n productDialog: boolean = false;\n products!: Product[];\n product!: Product;\n selectedProducts!: Product[] | null;\n submitted: boolean = false;\n statuses!: any[];\n cols!: Column[];\n exportColumns!: ExportColumn[];\n\n ngOnInit() {\n this.productService.getProducts().then((data) => {\n this.products = data;\n });\n this.statuses = [\n { label: 'INSTOCK', value: 'instock' },\n { label: 'LOWSTOCK', value: 'lowstock' },\n { label: 'OUTOFSTOCK', value: 'outofstock' }\n ];\n this.cols = [\n { field: 'code', header: 'Code', customExportHeader: 'Product Code' },\n { field: 'name', header: 'Name' },\n { field: 'image', header: 'Image' },\n { field: 'price', header: 'Price' },\n { field: 'category', header: 'Category' }\n ];\n this.exportColumns = this.cols.map((col) => ({ title: col.header, dataKey: col.field }));\n }\n\n openNew() {\n this.product = {};\n this.submitted = false;\n this.productDialog = true;\n }\n\n editProduct(product: Product) {\n this.product = { ...product };\n this.productDialog = true;\n }\n\n deleteSelectedProducts() {\n this.confirmationService.confirm({\n message: 'Are you sure you want to delete the selected products?',\n header: 'Confirm',\n icon: 'pi pi-exclamation-triangle',\n rejectButtonProps: {\n label: 'No',\n severity: 'secondary',\n variant: 'text'\n },\n acceptButtonProps: {\n severity: 'danger',\n label: 'Yes'\n },\n accept: () => {\n this.products = this.products.filter((val) => !this.selectedProducts?.includes(val));\n this.selectedProducts = null;\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Products Deleted',\n life: 3000\n });\n }\n });\n }\n\n hideDialog() {\n this.productDialog = false;\n this.submitted = false;\n }\n\n deleteProduct(product: Product) {\n this.confirmationService.confirm({\n message: 'Are you sure you want to delete ' + product.name + '?',\n header: 'Confirm',\n icon: 'pi pi-exclamation-triangle',\n rejectButtonProps: {\n label: 'No',\n severity: 'secondary',\n variant: 'text'\n },\n acceptButtonProps: {\n severity: 'danger',\n label: 'Yes'\n },\n accept: () => {\n this.products = this.products.filter((val) => val.id !== product.id);\n this.product = {};\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Deleted',\n life: 3000\n });\n }\n });\n }\n\n findIndexById(id: string): number {\n let index = -1;\n for (let i = 0; i < this.products.length; i++) {\n if (this.products[i].id === id) {\n index = i;\n break;\n }\n }\n \n return index;\n }\n\n createId(): string {\n let id = '';\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n for (var i = 0; i < 5; i++) {\n id += chars.charAt(Math.floor(Math.random() * chars.length));\n }\n return id;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n\n saveProduct() {\n this.submitted = true;\n \n if (this.product.name?.trim()) {\n if (this.product.id) {\n this.products[this.findIndexById(this.product.id)] = this.product;\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Updated',\n life: 3000\n });\n } else {\n this.product.id = this.createId();\n this.product.code = this.createId();\n this.product.image = 'product-placeholder.svg';\n this.products.push(this.product);\n this.messageService.add({\n severity: 'success',\n summary: 'Successful',\n detail: 'Product Created',\n life: 3000\n });\n }\n \n this.products = [...this.products];\n this.productDialog = false;\n this.product = {};\n }\n }\n}"
33938
33938
  }
33939
33939
  },
33940
33940
  {
@@ -33974,7 +33974,7 @@
33974
33974
  "label": "rowexpansion-doc",
33975
33975
  "description": "Row expansion allows displaying detailed content for a particular row. To use this feature, define a dataKey , add a template named expandedrow and use the pRowToggler directive on an element as the target to toggle an expansion. This enables providing your custom UI such as buttons, links and so on. Example below uses an anchor with an icon as a toggler. Setting pRowTogglerDisabled as true disables the toggle event for the element.",
33976
33976
  "examples": {
33977
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\nimport { Customer } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-table [value]=\"products\" dataKey=\"id\" [tableStyle]=\"{ 'min-width': '60rem' }\" [expandedRowKeys]=\"expandedRows\" (onRowExpand)=\"onRowExpand($event)\" (onRowCollapse)=\"onRowCollapse($event)\">\n <ng-template #caption>\n <div class=\"flex flex-wrap justify-end gap-2\">\n <p-button label=\"Expand All\" icon=\"pi pi-plus\" text (onClick)=\"expandAll()\" />\n <p-button label=\"Collapse All\" icon=\"pi pi-minus\" text (onClick)=\"collapseAll()\" />\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 5rem\"></th>\n <th>Name</th>\n <th>Image</th>\n <th>Price</th>\n <th>Category</th>\n <th>Reviews</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-product let-expanded=\"expanded\">\n <tr>\n <td>\n <p-button type=\"button\" pRipple [pRowToggler]=\"product\" [text]=\"true\" severity=\"secondary\" [rounded]=\"true\" [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\" />\n </td>\n <td>{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.name\" width=\"50\" class=\"shadow-lg\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td>\n <p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" />\n </td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #expandedrow let-product>\n <tr>\n <td colspan=\"7\">\n <div class=\"p-4\">\n <h5>Orders for {{ product.name }}</h5>\n <p-table [value]=\"product.orders\" dataKey=\"id\">\n <ng-template #header>\n <tr>\n <th pSortableColumn=\"id\">\n <div class=\"flex items-center gap-2\">\n Id\n <p-sortIcon field=\"price\" />\n </div>\n </th>\n <th pSortableColumn=\"customer\">\n <div class=\"flex items-center gap-2\">\n Customer\n <p-sortIcon field=\"customer\" />\n </div>\n </th>\n <th pSortableColumn=\"date\">\n <div class=\"flex items-center gap-2\">\n Date\n <p-sortIcon field=\"date\" />\n </div>\n </th>\n <th pSortableColumn=\"amount\">\n <div class=\"flex items-center gap-2\">\n Amount\n <p-sortIcon field=\"amount\" />\n </div>\n </th>\n <th pSortableColumn=\"status\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n </div>\n </th>\n <th style=\"width: 4rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-order>\n <tr>\n <td>{{ order.id }}</td>\n <td>{{ order.customer }}</td>\n <td>{{ order.date }}</td>\n <td>{{ order.amount | currency: 'USD' }}</td>\n <td>\n <p-tag [value]=\"order.status\" [severity]=\"getStatusSeverity(order.status)\" />\n </td>\n <td>\n <p-button type=\"button\" icon=\"pi pi-search\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"6\">There are no order for this product yet.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, RatingModule, TableModule, TagModule, ToastModule, RippleModule, FormsModule],\n providers: [ProductService, MessageService]\n})\nexport class TableRowexpansionDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n products!: Product[];\n expandedRows: any = {};\n\n ngOnInit() {\n this.productService.getProductsWithOrdersSmall().then((data) => {\n this.products = data;\n });\n }\n\n expandAll() {\n this.expandedRows = this.products.reduce((acc, p) => (acc[p.id] = true) && acc, {});\n }\n\n collapseAll() {\n this.expandedRows = {};\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n\n getStatusSeverity(status: string) {\n switch (status) {\n case 'PENDING':\n return 'warn';\n case 'DELIVERED':\n return 'success';\n case 'CANCELLED':\n return 'danger';\n }\n }\n\n onRowExpand(event: TableRowExpandEvent) {\n this.messageService.add({ severity: 'info', summary: 'Product Expanded', detail: event.data.name, life: 3000 });\n }\n\n onRowCollapse(event: TableRowCollapseEvent) {\n this.messageService.add({\n severity: 'success',\n summary: 'Product Collapsed',\n detail: event.data.name,\n life: 3000\n });\n }\n}"
33977
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { RippleModule } from '@exhaustive-ui/core/ripple';\nimport { ProductService } from '@/service/productservice';\nimport { MessageService } from '@exhaustive-ui/core/api';\nimport { Product } from '@/domain/product';\nimport { Customer } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toast />\n <p-table [value]=\"products\" dataKey=\"id\" [tableStyle]=\"{ 'min-width': '60rem' }\" [expandedRowKeys]=\"expandedRows\" (onRowExpand)=\"onRowExpand($event)\" (onRowCollapse)=\"onRowCollapse($event)\">\n <ng-template #caption>\n <div class=\"flex flex-wrap justify-end gap-2\">\n <p-button label=\"Expand All\" icon=\"pi pi-plus\" text (onClick)=\"expandAll()\" />\n <p-button label=\"Collapse All\" icon=\"pi pi-minus\" text (onClick)=\"collapseAll()\" />\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th style=\"width: 5rem\"></th>\n <th>Name</th>\n <th>Image</th>\n <th>Price</th>\n <th>Category</th>\n <th>Reviews</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-product let-expanded=\"expanded\">\n <tr>\n <td>\n <p-button type=\"button\" pRipple [pRowToggler]=\"product\" [text]=\"true\" severity=\"secondary\" [rounded]=\"true\" [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\" />\n </td>\n <td>{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.name\" width=\"50\" class=\"shadow-lg\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td>\n <p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" />\n </td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #expandedrow let-product>\n <tr>\n <td colspan=\"7\">\n <div class=\"p-4\">\n <h5>Orders for {{ product.name }}</h5>\n <p-table [value]=\"product.orders\" dataKey=\"id\">\n <ng-template #header>\n <tr>\n <th pSortableColumn=\"id\">\n <div class=\"flex items-center gap-2\">\n Id\n <p-sortIcon field=\"price\" />\n </div>\n </th>\n <th pSortableColumn=\"customer\">\n <div class=\"flex items-center gap-2\">\n Customer\n <p-sortIcon field=\"customer\" />\n </div>\n </th>\n <th pSortableColumn=\"date\">\n <div class=\"flex items-center gap-2\">\n Date\n <p-sortIcon field=\"date\" />\n </div>\n </th>\n <th pSortableColumn=\"amount\">\n <div class=\"flex items-center gap-2\">\n Amount\n <p-sortIcon field=\"amount\" />\n </div>\n </th>\n <th pSortableColumn=\"status\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n </div>\n </th>\n <th style=\"width: 4rem\"></th>\n </tr>\n </ng-template>\n <ng-template #body let-order>\n <tr>\n <td>{{ order.id }}</td>\n <td>{{ order.customer }}</td>\n <td>{{ order.date }}</td>\n <td>{{ order.amount | currency: 'USD' }}</td>\n <td>\n <p-tag [value]=\"order.status\" [severity]=\"getStatusSeverity(order.status)\" />\n </td>\n <td>\n <p-button type=\"button\" icon=\"pi pi-search\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"6\">There are no order for this product yet.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, RatingModule, TableModule, TagModule, ToastModule, RippleModule, FormsModule],\n providers: [ProductService, MessageService]\n})\nexport class TableRowexpansionDemo implements OnInit {\n private productService = inject(ProductService);\n private messageService = inject(MessageService);\n products!: Product[];\n expandedRows: any = {};\n\n ngOnInit() {\n this.productService.getProductsWithOrdersSmall().then((data) => {\n this.products = data;\n });\n }\n\n expandAll() {\n this.expandedRows = this.products.reduce((acc, p) => (acc[p.id] = true) && acc, {});\n }\n\n collapseAll() {\n this.expandedRows = {};\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n\n getStatusSeverity(status: string) {\n switch (status) {\n case 'PENDING':\n return 'warn';\n case 'DELIVERED':\n return 'success';\n case 'CANCELLED':\n return 'danger';\n }\n }\n\n onRowExpand(event: TableRowExpandEvent) {\n this.messageService.add({ severity: 'info', summary: 'Product Expanded', detail: event.data.name, life: 3000 });\n }\n\n onRowCollapse(event: TableRowCollapseEvent) {\n this.messageService.add({\n severity: 'success',\n summary: 'Product Collapsed',\n detail: event.data.name,\n life: 3000\n });\n }\n}"
33978
33978
  }
33979
33979
  },
33980
33980
  {
@@ -33982,7 +33982,7 @@
33982
33982
  "label": "rowspangrouping-doc",
33983
33983
  "description": "When rowGroupMode is configured to be rowspan , the grouping column spans multiple rows.",
33984
33984
  "examples": {
33985
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" rowGroupMode=\"rowspan\" groupRowsBy=\"representative.name\" sortField=\"representative.name\" sortMode=\"single\" [tableStyle]=\"{ 'min-width': '75rem' }\">\n <ng-template #header>\n <tr>\n <th style=\"width:3rem\">#</th>\n <th>Representative</th>\n <th>Name</th>\n <th>Country</th>\n <th>Company</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-customer let-rowIndex=\"rowIndex\" let-rowgroup=\"rowgroup\" let-rowspan=\"rowspan\">\n <tr>\n <td>{{ rowIndex }}</td>\n <td *ngIf=\"rowgroup\" [attr.rowspan]=\"rowspan\">\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [CustomerService]\n})\nexport class TableRowspangroupingDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33985
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" rowGroupMode=\"rowspan\" groupRowsBy=\"representative.name\" sortField=\"representative.name\" sortMode=\"single\" [tableStyle]=\"{ 'min-width': '75rem' }\">\n <ng-template #header>\n <tr>\n <th style=\"width:3rem\">#</th>\n <th>Representative</th>\n <th>Name</th>\n <th>Country</th>\n <th>Company</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-customer let-rowIndex=\"rowIndex\" let-rowgroup=\"rowgroup\" let-rowspan=\"rowspan\">\n <tr>\n <td>{{ rowIndex }}</td>\n <td *ngIf=\"rowgroup\" [attr.rowspan]=\"rowspan\">\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" />\n <span>{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [CustomerService]\n})\nexport class TableRowspangroupingDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
33986
33986
  }
33987
33987
  },
33988
33988
  {
@@ -34022,7 +34022,7 @@
34022
34022
  "label": "Stateful",
34023
34023
  "description": "Stateful table allows keeping the state such as page, sort and filtering either at local storage or session storage so that when the page is visited again, table would render the data using the last settings. Change the state of the table e.g paginate, navigate away and then return to this table again to test this feature, the setting is set as session with the stateStorage property so that Table retains the state until the browser is closed. Other alternative is local referring to localStorage for an extended lifetime.",
34024
34024
  "examples": {
34025
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt1\n [value]=\"customers\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n selectionMode=\"single\"\n [(selection)]=\"selectedCustomers\"\n dataKey=\"id\"\n [tableStyle]=\"{ 'min-width': '50rem' }\"\n [rows]=\"5\"\n [paginator]=\"true\"\n stateStorage=\"session\"\n stateKey=\"statedemo-session\"\n >\n <ng-template #caption>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" [value]=\"dt1._filters()['global']?.value\" (input)=\"dt1.filterGlobal($event.target.value, 'contains')\" placeholder=\"Global Search\" />\n </p-iconfield>\n </ng-template>\n <ng-template #header>\n <tr>\n <th pSortableColumn=\"name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n </div>\n </th>\n <th pSortableColumn=\"country.name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Country\n <p-sortIcon field=\"country.name\" />\n </div>\n </th>\n <th pSortableColumn=\"representative.name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Representative\n <p-sortIcon field=\"representative.name\" />\n </div>\n </th>\n <th pSortableColumn=\"status\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr [pSelectableRow]=\"customer\">\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr [pSelectableRow]=\"customer\">\n <td>\n {{ customer.name }}\n </td>\n <td>\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </td>\n <td>\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"4\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [IconFieldModule, InputIconModule, TableModule, TagModule, InputTextModule],\n providers: [CustomerService]\n})\nexport class TableStatefulDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n selectedCustomers!: Customer;\n\n ngOnInit() {\n this.customerService.getCustomersSmall().then((data) => {\n this.customers = data;\n });\n }\n}"
34025
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { IconFieldModule } from '@exhaustive-ui/core/iconfield';\nimport { InputIconModule } from '@exhaustive-ui/core/inputicon';\nimport { Table, TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { InputTextModule } from '@exhaustive-ui/core/inputtext';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Representative, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table\n #dt1\n [value]=\"customers\"\n [globalFilterFields]=\"['name', 'country.name', 'representative.name', 'status']\"\n selectionMode=\"single\"\n [(selection)]=\"selectedCustomers\"\n dataKey=\"id\"\n [tableStyle]=\"{ 'min-width': '50rem' }\"\n [rows]=\"5\"\n [paginator]=\"true\"\n stateStorage=\"session\"\n stateKey=\"statedemo-session\"\n >\n <ng-template #caption>\n <p-iconfield iconPosition=\"left\">\n <p-inputicon>\n <i class=\"pi pi-search\"></i>\n </p-inputicon>\n <input pInputText type=\"text\" [value]=\"dt1._filters()['global']?.value\" (input)=\"dt1.filterGlobal($event.target.value, 'contains')\" placeholder=\"Global Search\" />\n </p-iconfield>\n </ng-template>\n <ng-template #header>\n <tr>\n <th pSortableColumn=\"name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Name\n <p-sortIcon field=\"name\" />\n </div>\n </th>\n <th pSortableColumn=\"country.name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Country\n <p-sortIcon field=\"country.name\" />\n </div>\n </th>\n <th pSortableColumn=\"representative.name\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Representative\n <p-sortIcon field=\"representative.name\" />\n </div>\n </th>\n <th pSortableColumn=\"status\" style=\"width:25%\">\n <div class=\"flex items-center gap-2\">\n Status\n <p-sortIcon field=\"status\" />\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr [pSelectableRow]=\"customer\">\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </div>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #body let-customer>\n <tr [pSelectableRow]=\"customer\">\n <td>\n {{ customer.name }}\n </td>\n <td>\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span class=\"ml-1 align-middle\">{{ customer.country.name }}</span>\n </td>\n <td>\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"ml-1 align-middle\">{{ customer.representative.name }}</span>\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #emptymessage>\n <tr>\n <td colspan=\"4\">No customers found.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [IconFieldModule, InputIconModule, TableModule, TagModule, InputTextModule],\n providers: [CustomerService]\n})\nexport class TableStatefulDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n selectedCustomers!: Customer;\n\n ngOnInit() {\n this.customerService.getCustomersSmall().then((data) => {\n this.customers = data;\n });\n }\n}"
34026
34026
  }
34027
34027
  },
34028
34028
  {
@@ -34052,7 +34052,7 @@
34052
34052
  "label": "subheadergrouping-doc",
34053
34053
  "description": "Rows are grouped with the groupRowsBy property. When rowGroupMode is set as subheader , a header and footer can be displayed for each group. The content of a group header is provided with groupheader and footer with groupfooter templates.",
34054
34054
  "examples": {
34055
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" sortField=\"representative.name\" sortMode=\"single\" [scrollable]=\"true\" scrollHeight=\"400px\" rowGroupMode=\"subheader\" groupRowsBy=\"representative.name\" [tableStyle]=\"{ 'min-width': '60rem' }\">\n <ng-template #header>\n <tr>\n <th>Name</th>\n <th>Country</th>\n <th>Company</th>\n <th>Status</th>\n <th>Date</th>\n </tr>\n </ng-template>\n <ng-template #groupheader let-customer>\n <tr pRowGroupHeader>\n <td colspan=\"5\">\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.e-xiste.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"font-bold\">{{ customer.representative.name }}</span>\n </div>\n </td>\n </tr>\n </ng-template>\n <ng-template #groupfooter let-customer>\n <tr>\n <td colspan=\"5\">\n <div class=\"text-right font-bold pe-12\">Total Customers: {{ calculateCustomerTotal(customer.representative.name) }}</div>\n </td>\n </tr>\n </ng-template>\n <ng-template #body let-customer let-rowIndex=\"rowIndex\">\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n {{ customer.date }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [CustomerService]\n})\nexport class TableSubheadergroupingDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
34055
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { CustomerService } from '@/service/customerservice';\nimport { Customer, Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"customers\" sortField=\"representative.name\" sortMode=\"single\" [scrollable]=\"true\" scrollHeight=\"400px\" rowGroupMode=\"subheader\" groupRowsBy=\"representative.name\" [tableStyle]=\"{ 'min-width': '60rem' }\">\n <ng-template #header>\n <tr>\n <th>Name</th>\n <th>Country</th>\n <th>Company</th>\n <th>Status</th>\n <th>Date</th>\n </tr>\n </ng-template>\n <ng-template #groupheader let-customer>\n <tr pRowGroupHeader>\n <td colspan=\"5\">\n <div class=\"flex items-center gap-2\">\n <img [alt]=\"customer.representative.name\" src=\"https://exhaustive-ui.com/demo/avatar/{{ customer.representative.image }}\" width=\"32\" style=\"vertical-align: middle\" />\n <span class=\"font-bold\">{{ customer.representative.name }}</span>\n </div>\n </td>\n </tr>\n </ng-template>\n <ng-template #groupfooter let-customer>\n <tr>\n <td colspan=\"5\">\n <div class=\"text-right font-bold pe-12\">Total Customers: {{ calculateCustomerTotal(customer.representative.name) }}</div>\n </td>\n </tr>\n </ng-template>\n <ng-template #body let-customer let-rowIndex=\"rowIndex\">\n <tr>\n <td>\n {{ customer.name }}\n </td>\n <td>\n <div class=\"flex items-center gap-2\">\n <img src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" [class]=\"'flag flag-' + customer.country.code\" style=\"width: 20px\" />\n <span>{{ customer.country.name }}</span>\n </div>\n </td>\n <td>\n {{ customer.company }}\n </td>\n <td>\n <p-tag [value]=\"customer.status\" [severity]=\"getSeverity(customer.status)\" />\n </td>\n <td>\n {{ customer.date }}\n </td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [TableModule, TagModule],\n providers: [CustomerService]\n})\nexport class TableSubheadergroupingDemo implements OnInit {\n private customerService = inject(CustomerService);\n customers!: Customer[];\n\n ngOnInit() {\n this.customerService.getCustomersMedium().then((data) => {\n this.customers = data;\n });\n }\n\n calculateCustomerTotal(name: string) {\n let total = 0;\n \n if (this.customers) {\n for (let customer of this.customers) {\n if (customer.representative?.name === name) {\n total++;\n }\n }\n }\n \n return total;\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'unqualified':\n return 'danger';\n \n case 'qualified':\n return 'success';\n \n case 'new':\n return 'info';\n \n case 'negotiation':\n return 'warn';\n \n case 'renewal':\n return null;\n }\n }\n}"
34056
34056
  }
34057
34057
  },
34058
34058
  {
@@ -34060,7 +34060,7 @@
34060
34060
  "label": "Template",
34061
34061
  "description": "Custom content at header , body and footer sections are supported via templating.",
34062
34062
  "examples": {
34063
- "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\ninterface Column {\n field: string;\n header: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"products\" [tableStyle]=\"{ 'min-width': '60rem' }\">\n <ng-template #caption>\n <div class=\"flex items-center justify-between\">\n <span class=\"text-xl font-bold\">Products</span>\n <p-button icon=\"pi pi-refresh\" rounded raised />\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th>Name</th>\n <th>Image</th>\n <th>Price</th>\n <th>Category</th>\n <th>Reviews</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td>{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + product.image\" [alt]=\"product.name\" class=\"w-24 rounded\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td><p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" /></td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #footer>\n <tr>\n <td colspan=\"6\">In total there are {{ products ? products.length : 0 }} products.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, RatingModule, TableModule, TagModule, FormsModule],\n providers: [ProductService]\n})\nexport class TableTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n products!: Product[];\n cols!: Column[];\n\n ngOnInit() {\n this.productService.getProductsMini().then((data) => {\n this.products = data;\n });\n this.cols = [\n { field: 'code', header: 'Code' },\n { field: 'name', header: 'Name' },\n { field: 'category', header: 'Category' },\n { field: 'quantity', header: 'Quantity' }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
34063
+ "typescript": "import { Component, OnInit, inject } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { RatingModule } from '@exhaustive-ui/core/rating';\nimport { TableModule } from '@exhaustive-ui/core/table';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { ProductService } from '@/service/productservice';\nimport { Product } from '@/domain/product';\n\ninterface Column {\n field: string;\n header: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-table [value]=\"products\" [tableStyle]=\"{ 'min-width': '60rem' }\">\n <ng-template #caption>\n <div class=\"flex items-center justify-between\">\n <span class=\"text-xl font-bold\">Products</span>\n <p-button icon=\"pi pi-refresh\" rounded raised />\n </div>\n </ng-template>\n <ng-template #header>\n <tr>\n <th>Name</th>\n <th>Image</th>\n <th>Price</th>\n <th>Category</th>\n <th>Reviews</th>\n <th>Status</th>\n </tr>\n </ng-template>\n <ng-template #body let-product>\n <tr>\n <td>{{ product.name }}</td>\n <td>\n <img [src]=\"'https://exhaustive-ui.com/demo/product/' + product.image\" [alt]=\"product.name\" class=\"w-24 rounded\" />\n </td>\n <td>{{ product.price | currency: 'USD' }}</td>\n <td>{{ product.category }}</td>\n <td><p-rating [(ngModel)]=\"product.rating\" [readonly]=\"true\" /></td>\n <td>\n <p-tag [value]=\"product.inventoryStatus\" [severity]=\"getSeverity(product.inventoryStatus)\" />\n </td>\n </tr>\n </ng-template>\n <ng-template #footer>\n <tr>\n <td colspan=\"6\">In total there are {{ products ? products.length : 0 }} products.</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, RatingModule, TableModule, TagModule, FormsModule],\n providers: [ProductService]\n})\nexport class TableTemplateDemo implements OnInit {\n private productService = inject(ProductService);\n products!: Product[];\n cols!: Column[];\n\n ngOnInit() {\n this.productService.getProductsMini().then((data) => {\n this.products = data;\n });\n this.cols = [\n { field: 'code', header: 'Code' },\n { field: 'name', header: 'Name' },\n { field: 'category', header: 'Category' },\n { field: 'quantity', header: 'Quantity' }\n ];\n }\n\n getSeverity(status: string) {\n switch (status) {\n case 'INSTOCK':\n return 'success';\n case 'LOWSTOCK':\n return 'warn';\n case 'OUTOFSTOCK':\n return 'danger';\n }\n }\n}"
34064
34064
  }
34065
34065
  },
34066
34066
  {
@@ -35298,7 +35298,7 @@
35298
35298
  "label": "customtemplate-doc",
35299
35299
  "description": "Custom content for a tab is defined with the default ng-content.",
35300
35300
  "examples": {
35301
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { TabsModule } from '@exhaustive-ui/core/tabs';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-tabs value=\"0\" scrollable>\n <p-tablist>\n <ng-template #previcon>\n <i class=\"pi pi-minus\"></i>\n </ng-template>\n <p-tab value=\"0\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n </p-tab>\n <p-tab value=\"1\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Onyama Limba</span>\n </p-tab>\n <p-tab value=\"2\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/ionibowcher.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Ioni Bowcher</span>\n <p-badge value=\"2\" />\n </p-tab>\n <ng-template #nexticon>\n <i class=\"pi pi-plus\"></i>\n </ng-template>\n </p-tablist>\n <p-tabpanels>\n <p-tabpanel value=\"0\">\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.\n </p>\n </p-tabpanel>\n <p-tabpanel value=\"1\">\n <p class=\"m-0\">\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo\n enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.\n </p>\n </p-tabpanel>\n <p-tabpanel value=\"2\">\n <p class=\"m-0\">\n At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in\n culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.\n </p>\n </p-tabpanel>\n </p-tabpanels>\n </p-tabs>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, TabsModule]\n})\nexport class TabsCustomtemplateDemo {}"
35301
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { BadgeModule } from '@exhaustive-ui/core/badge';\nimport { TabsModule } from '@exhaustive-ui/core/tabs';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-tabs value=\"0\" scrollable>\n <p-tablist>\n <ng-template #previcon>\n <i class=\"pi pi-minus\"></i>\n </ng-template>\n <p-tab value=\"0\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Amy Elsner</span>\n </p-tab>\n <p-tab value=\"1\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/onyamalimba.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Onyama Limba</span>\n </p-tab>\n <p-tab value=\"2\" class=\"flex items-center !gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/ionibowcher.png\" shape=\"circle\" />\n <span class=\"font-bold whitespace-nowrap\">Ioni Bowcher</span>\n <p-badge value=\"2\" />\n </p-tab>\n <ng-template #nexticon>\n <i class=\"pi pi-plus\"></i>\n </ng-template>\n </p-tablist>\n <p-tabpanels>\n <p-tabpanel value=\"0\">\n <p class=\"m-0\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo\n consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est\n laborum.\n </p>\n </p-tabpanel>\n <p-tabpanel value=\"1\">\n <p class=\"m-0\">\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo\n enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.\n </p>\n </p-tabpanel>\n <p-tabpanel value=\"2\">\n <p class=\"m-0\">\n At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in\n culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.\n </p>\n </p-tabpanel>\n </p-tabpanels>\n </p-tabs>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, BadgeModule, TabsModule]\n})\nexport class TabsCustomtemplateDemo {}"
35302
35302
  }
35303
35303
  },
35304
35304
  {
@@ -35735,7 +35735,7 @@
35735
35735
  "label": "Template",
35736
35736
  "description": "Children of the component are passed as the content for templating.",
35737
35737
  "examples": {
35738
- "typescript": "import { Component } from '@angular/core';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-tag [style]=\"{ border: '2px solid var(--border-color)', background: 'transparent', color: 'var(--text-color)' }\">\n <div class=\"flex items-center gap-2 px-1\">\n <img alt=\"Country\" src=\"https://exhaustive-ui.e-xiste.com/demo/flag/flag_placeholder.png\" class=\"flag flag-it\" style=\"width: 18px\" />\n <span class=\"text-base\">Italy</span>\n </div>\n </p-tag>\n </div>\n `,\n standalone: true,\n imports: [TagModule]\n})\nexport class TagTemplateDemo {}"
35738
+ "typescript": "import { Component } from '@angular/core';\nimport { TagModule } from '@exhaustive-ui/core/tag';\nimport { Country } from '@/domain/customer';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-tag [style]=\"{ border: '2px solid var(--border-color)', background: 'transparent', color: 'var(--text-color)' }\">\n <div class=\"flex items-center gap-2 px-1\">\n <img alt=\"Country\" src=\"https://exhaustive-ui.com/demo/flag/flag_placeholder.png\" class=\"flag flag-it\" style=\"width: 18px\" />\n <span class=\"text-base\">Italy</span>\n </div>\n </p-tag>\n </div>\n `,\n standalone: true,\n imports: [TagModule]\n})\nexport class TagTemplateDemo {}"
35739
35739
  }
35740
35740
  }
35741
35741
  ],
@@ -37073,7 +37073,7 @@
37073
37073
  "label": "Template",
37074
37074
  "description": "Sample implementation with custom content and styled markers.",
37075
37075
  "examples": {
37076
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CardModule } from '@exhaustive-ui/core/card';\nimport { TimelineModule } from '@exhaustive-ui/core/timeline';\n\ninterface EventItem {\n status?: string;\n date?: string;\n icon?: string;\n color?: string;\n image?: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-timeline [value]=\"events\" align=\"alternate\" class=\"customized-timeline\">\n <ng-template #marker let-event>\n <span class=\"flex w-8 h-8 items-center justify-center text-white rounded-full z-10 shadow-sm\" [style]=\"{ 'background-color': event.color }\">\n <i [class]=\"event.icon\"></i>\n </span>\n </ng-template>\n <ng-template #content let-event>\n <p-card [header]=\"event.status\" [subheader]=\"event.date\">\n <img *ngIf=\"event.image\" [src]=\"'https://exhaustive-ui.e-xiste.com/demo/product/' + event.image\" [alt]=\"event.name\" width=\"200\" class=\"shadow\" />\n <p>\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate\n neque quas!\n </p>\n <p-button label=\"Read more\" [text]=\"true\" />\n </p-card>\n </ng-template>\n </p-timeline>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CardModule, TimelineModule]\n})\nexport class TimelineTemplateDemo {\n events: EventItem[];\n\n constructor() {\n this.events = [\n { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },\n { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },\n { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },\n { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }\n ];\n }\n}"
37076
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { CardModule } from '@exhaustive-ui/core/card';\nimport { TimelineModule } from '@exhaustive-ui/core/timeline';\n\ninterface EventItem {\n status?: string;\n date?: string;\n icon?: string;\n color?: string;\n image?: string;\n}\n\n@Component({\n template: `\n <div class=\"card\">\n <p-timeline [value]=\"events\" align=\"alternate\" class=\"customized-timeline\">\n <ng-template #marker let-event>\n <span class=\"flex w-8 h-8 items-center justify-center text-white rounded-full z-10 shadow-sm\" [style]=\"{ 'background-color': event.color }\">\n <i [class]=\"event.icon\"></i>\n </span>\n </ng-template>\n <ng-template #content let-event>\n <p-card [header]=\"event.status\" [subheader]=\"event.date\">\n <img *ngIf=\"event.image\" [src]=\"'https://exhaustive-ui.com/demo/product/' + event.image\" [alt]=\"event.name\" width=\"200\" class=\"shadow\" />\n <p>\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore sed consequuntur error repudiandae numquam deserunt quisquam repellat libero asperiores earum nam nobis, culpa ratione quam perferendis esse, cupiditate\n neque quas!\n </p>\n <p-button label=\"Read more\" [text]=\"true\" />\n </p-card>\n </ng-template>\n </p-timeline>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, CardModule, TimelineModule]\n})\nexport class TimelineTemplateDemo {\n events: EventItem[];\n\n constructor() {\n this.events = [\n { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },\n { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },\n { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },\n { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }\n ];\n }\n}"
37077
37077
  }
37078
37078
  }
37079
37079
  ],
@@ -37390,7 +37390,7 @@
37390
37390
  "label": "template-doc",
37391
37391
  "description": "Templating allows customizing the content where the message instance is available as the implicit variable.",
37392
37392
  "examples": {
37393
- "typescript": "import { Component, inject } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-toast position=\"bottom-center\" key=\"confirm\" (onClose)=\"onReject()\" [baseZIndex]=\"5000\">\n <ng-template let-message #message>\n <div class=\"flex flex-col items-start flex-auto\">\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n <div class=\"font-medium text-lg my-4\">{{ message.summary }}</div>\n <p-button severity=\"success\" size=\"small\" label=\"Reply\" (click)=\"onConfirm()\" />\n </div>\n </ng-template>\n </p-toast>\n <p-button (click)=\"showConfirm()\" label=\"View\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, ToastModule],\n providers: [MessageService]\n})\nexport class ToastTemplateDemo {\n private messageService = inject(MessageService);\n\n onReject() {\n this.messageService.clear('confirm');\n this.visible = false;\n }\n\n showConfirm() {\n if (!this.visible) {\n this.messageService.add({\n key: 'confirm',\n sticky: true,\n severity: 'success',\n summary: 'Can you send me the report?'\n });\n this.visible = true;\n }\n }\n}"
37393
+ "typescript": "import { Component, inject } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ToastModule } from '@exhaustive-ui/core/toast';\nimport { MessageService } from '@exhaustive-ui/core/api';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-toast position=\"bottom-center\" key=\"confirm\" (onClose)=\"onReject()\" [baseZIndex]=\"5000\">\n <ng-template let-message #message>\n <div class=\"flex flex-col items-start flex-auto\">\n <div class=\"flex items-center gap-2\">\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" shape=\"circle\" />\n <span class=\"font-bold\">Amy Elsner</span>\n </div>\n <div class=\"font-medium text-lg my-4\">{{ message.summary }}</div>\n <p-button severity=\"success\" size=\"small\" label=\"Reply\" (click)=\"onConfirm()\" />\n </div>\n </ng-template>\n </p-toast>\n <p-button (click)=\"showConfirm()\" label=\"View\" />\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, ToastModule],\n providers: [MessageService]\n})\nexport class ToastTemplateDemo {\n private messageService = inject(MessageService);\n\n onReject() {\n this.messageService.clear('confirm');\n this.visible = false;\n }\n\n showConfirm() {\n if (!this.visible) {\n this.messageService.add({\n key: 'confirm',\n sticky: true,\n severity: 'success',\n summary: 'Can you send me the report?'\n });\n this.visible = true;\n }\n }\n}"
37394
37394
  }
37395
37395
  }
37396
37396
  ],
@@ -38868,7 +38868,7 @@
38868
38868
  "label": "Custom",
38869
38869
  "description": "Content can also be placed using the start , center and end templates.",
38870
38870
  "examples": {
38871
- "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ToolbarModule } from '@exhaustive-ui/core/toolbar';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toolbar [style]=\"{ 'border-radius': '3rem', padding: '1rem 1rem 1rem 1.5rem' }\">\n <ng-template #start>\n <div class=\"flex items-center gap-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 2rem; margin-right: 1rem\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <p-button label=\"Files\" text plain />\n <p-button label=\"Edit\" text plain />\n <p-button label=\"View\" text plain />\n </div>\n </ng-template>\n <ng-template #end>\n <div class=\"flex items-center gap-2\">\n <p-button label=\"Share\" severity=\"contrast\" size=\"small\" />\n <p-avatar image=\"https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png\" [style]=\"{ width: '32px', height: '32px' }\" />\n </div>\n </ng-template>\n </p-toolbar>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, ToolbarModule]\n})\nexport class ToolbarCustomDemo {}"
38871
+ "typescript": "import { Component } from '@angular/core';\nimport { AvatarModule } from '@exhaustive-ui/core/avatar';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { ToolbarModule } from '@exhaustive-ui/core/toolbar';\n\n@Component({\n template: `\n <div class=\"card\">\n <p-toolbar [style]=\"{ 'border-radius': '3rem', padding: '1rem 1rem 1rem 1.5rem' }\">\n <ng-template #start>\n <div class=\"flex items-center gap-2\">\n <svg width=\"31\" height=\"33\" viewBox=\"0 0 31 33\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 2rem; margin-right: 1rem\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--p-primary-color)\" />\n <mask id=\"mask0_1_52\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"31\" height=\"33\">\n <path d=\"M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z\" fill=\"var(--ground-background)\" />\n </mask>\n <g mask=\"url(#mask0_1_52)\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z\" fill=\"var(--p-primary-color)\" />\n </g>\n <path d=\"M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path d=\"M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z\" fill=\"var(--ground-background)\" />\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z\"\n fill=\"var(--ground-background)\"\n />\n <path d=\"M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z\" fill=\"var(--ground-background)\" />\n <path d=\"M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z\" fill=\"var(--ground-background)\" />\n <path d=\"M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z\" fill=\"var(--ground-background)\" />\n <path d=\"M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z\" fill=\"var(--ground-background)\" />\n </svg>\n <p-button label=\"Files\" text plain />\n <p-button label=\"Edit\" text plain />\n <p-button label=\"View\" text plain />\n </div>\n </ng-template>\n <ng-template #end>\n <div class=\"flex items-center gap-2\">\n <p-button label=\"Share\" severity=\"contrast\" size=\"small\" />\n <p-avatar image=\"https://exhaustive-ui.com/demo/avatar/amyelsner.png\" [style]=\"{ width: '32px', height: '32px' }\" />\n </div>\n </ng-template>\n </p-toolbar>\n </div>\n `,\n standalone: true,\n imports: [AvatarModule, ButtonModule, ToolbarModule]\n})\nexport class ToolbarCustomDemo {}"
38872
38872
  }
38873
38873
  }
38874
38874
  ],
@@ -39027,7 +39027,7 @@
39027
39027
  "label": "Custom",
39028
39028
  "description": "Tooltip can use either a string or a TemplateRef .",
39029
39029
  "examples": {
39030
- "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button [pTooltip]=\"tooltipContent\" severity=\"secondary\" tooltipPosition=\"bottom\" label=\"Button\" />\n <ng-template #tooltipContent>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.e-xiste.com/logo-icon.svg\" alt=\"ExhaustiveUI\" width=\"32\" height=\"32\" class=\"mr-2\" />\n <span> <b>ExhaustiveUI</b> rocks! </span>\n </div>\n </ng-template>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, TooltipModule]\n})\nexport class TooltipCustomDemo {}"
39030
+ "typescript": "import { Component } from '@angular/core';\nimport { ButtonModule } from '@exhaustive-ui/core/button';\nimport { TooltipModule } from '@exhaustive-ui/core/tooltip';\n\n@Component({\n template: `\n <div class=\"card flex justify-center\">\n <p-button [pTooltip]=\"tooltipContent\" severity=\"secondary\" tooltipPosition=\"bottom\" label=\"Button\" />\n <ng-template #tooltipContent>\n <div class=\"flex items-center\">\n <img src=\"https://exhaustive-ui.com/logo-icon.svg\" alt=\"ExhaustiveUI\" width=\"32\" height=\"32\" class=\"mr-2\" />\n <span> <b>ExhaustiveUI</b> rocks! </span>\n </div>\n </ng-template>\n </div>\n `,\n standalone: true,\n imports: [ButtonModule, TooltipModule]\n})\nexport class TooltipCustomDemo {}"
39031
39031
  }
39032
39032
  },
39033
39033
  {
@@ -43462,7 +43462,7 @@
43462
43462
  "label": "Agentskill-",
43463
43463
  "description": "The markdown files above are also bundled as an Agent Skill , the SKILL.md format supported by coding agents such as Claude Code, Codex, Cursor and OpenCode. Once installed, the agent reads the component docs, API tables and guides from disk whenever it works on ExhaustiveUI code, instead of fetching them from this site each time. Install it with the skills CLI , which asks which agents to set it up for. By default the skill is installed into the current project, so your team gets it too. Add -g to install it for your user instead. You can also download the zip and extract it into a folder named exhaustive-ui in your agent's skills directory.",
43464
43464
  "examples": {
43465
- "command": "npx skills add https://exhaustive-ui.e-xiste.com\n\n# update to the latest docs\nnpx skills update exhaustive-ui"
43465
+ "command": "npx skills add https://exhaustive-ui.com\n\n# update to the latest docs\nnpx skills update exhaustive-ui"
43466
43466
  }
43467
43467
  },
43468
43468
  {